Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.*;
- public class ItemTentBag extends Item {
- public ItemTentBag(int i)
- {
- super(i);
- maxStackSize = 1;
- setMaxDamage(1);
- }
- public static final Item ItemTentBag = new ItemTentBag(2118).setItemName("Tent");
- public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int i, int j, int k, int l)
- {
- par1ItemStack.damageItem(1, par2EntityPlayer);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 1, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 2, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 1, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 2, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 1, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 2, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 1, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 2, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 1, k-1, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 2, k-2, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 1, k-3, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 2, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 1, k-2, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 2, k-3, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 1, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 2, k-1, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 1, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 2, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k-1, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k-2, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k-3, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k-2, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k-3, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k-4, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k-1, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 1, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 2, k, Block.fence.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3,k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+3, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-2, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-3, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-4, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k-1, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 3, k, Block.wood.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+2, j + 1, k-3, Block.chest.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 1, k, Block.fenceGate.blockID);
- ModLoader.getMinecraftInstance().theWorld.setBlockWithNotify(i+1, j + 2, k, Block.fenceGate.blockID);
- return true;
- }
- }
- tent:)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement