Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import net.minecraft.client.Minecraft;
- public class ItemIceBook extends Item
- {
- public ItemIceBook(int i)
- {
- super(i);
- setItemName("iceBook");
- }
- public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
- {
- Minecraft minecraft = ModLoader.getMinecraftInstance();
- double x = minecraft.objectMouseOver.coordX;
- double y = minecraft.objectMouseOver.coordY;
- double z = minecraft.objectMouseover.coordZ;
- world.setBlockWithNotify((int) x, (int) y, (int) z, 1);
- --itemstack.stackSize;
- return itemstack;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement