Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ)
- {
- Item item;
- if(player.getCurrentEquippedItem() != null)
- {
- item = player.getCurrentEquippedItem().getItem();
- if (item == Item.getItemFromBlock(BlockRegistry.blaziumLampSlab))
- {
- world.playSoundEffect(pos.getX(), pos.getY(), pos.getZ(), "random.glass3", 0.8F, player.getRNG().nextFloat() + 0.8F);
- world.setBlockState(pos, BlockRegistry.blaziumLamp.getDefaultState());
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement