Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class SpiderManequin extends Item
- {
- public SpiderManequin(int i)
- {
- super(i);
- maxStackSize = 1;
- setMaxDamage(200);
- }
- private World worldObj;
- public boolean onItemUse (ItemStack itemstack, EntityPlayer entityplayer, World world, int i ,int j, int k, int l){
- if(!world.isRemote)
- {
- ModLoader.getMinecraftInstance().thePlayer.addChatMessage("Dirt Slime Summonned!");
- EntityLiving entityliving = (EntityLiving)EntityList.createEntityByName("Dirt Slime", entityplayer.worldObj);
- entityliving.setLocationAndAngles(i, j + 1, k, 0F, 0F);
- entityplayer.worldObj.spawnEntityInWorld(entityliving);
- entityplayer.swingItem();
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement