help
ScriptAPI
4
Posts
4
Posters
294
Views
-
Why doesnt the first code work and the second works?
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.getPosition())).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
-
Why doesnt the first code work and the second works?
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.getPosition())).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
@skidma position does not return xyz
-
Why doesnt the first code work and the second works?
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.getPosition())).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
-
Why doesnt the first code work and the second works?
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.getPosition())).getBlock() == Block.getBlockById(65)) { Chat.print('a') }
var Block = Java.type('net.minecraft.block.Block'); var BlockPos = Java.type('net.minecraft.util.BlockPos'); if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(65)) { Chat.print('a') }