tterrag1098

Untitled

Sep 24th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. @Override
  2.     public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
  3.     {
  4.         if (!world.isRemote && world.isAirBlock(x, y + 1, z))
  5.             {
  6.                 world.setBlock(x, y, z, BlockInfo.INVISIBLE_REDSTONE_ID, 0, 3);
  7.                 System.out.println(world.isBlockIndirectlyGettingPowered(x, y, z));
  8.                 System.out.println("Placed!");
  9.                 return true;
  10.             }
  11.         System.out.println("NOT PLACED");
  12.         return true;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment