Advertisement
Creepinson

block activation

Jul 10th, 2017
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. @Override
  3. public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
  4.  
  5. if(worldIn.isRemote)
  6. return true;
  7.  
  8. playerIn.openGui(ElementalMeeps.instance,0, worldIn, pos.getX(), pos.getY(), pos.getZ());
  9.  
  10. return true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement