Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
- {
- if (!world.isRemote && world.isAirBlock(x, y + 1, z))
- {
- world.setBlock(x, y, z, BlockInfo.INVISIBLE_REDSTONE_ID, 0, 3);
- System.out.println(world.isBlockIndirectlyGettingPowered(x, y, z));
- System.out.println("Placed!");
- return true;
- }
- System.out.println("NOT PLACED");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment