Posted June 27, 201510 yr So i need to make a block which can check if the block beneath it is block X and if so return a true value anyone who can help me doing this?
June 27, 201510 yr if(worldObj.getBlockState(new BlockPos(this.getPos().getX(), this.getPos().getY()-1, this.getPos().getZ()))!=Blocks.air.getDefaultState()){ } This should work nearly everywhere.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.