Hello, I need help adding a weapon to my mob. I have looked at how the Zombie Pig Man uses the Gold Sword, and how the Skeleton uses the Bow, but I have tried that code and it won't work. My mob just walks around empty handed.
This is the code I am trying to use.
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
private static final ItemStack defaultHeldItem;
static
{
defaultHeldItem = new ItemStack(Item.swordStone, 1);
}
If you can help me in anyway it would be appreciated, Thanks.
This is the code I am trying to use.
If you can help me in anyway it would be appreciated, Thanks.