Scyntrus / FactionMobs

FactionMobs CraftBukkit Plugin
http://dev.bukkit.org/server-mods/faction-mobs/
Other
14 stars 19 forks source link

I really need to change the Armour and the Sword to another Sword #22

Open rotus1122334455 opened 5 years ago

rotus1122334455 commented 5 years ago

Hi I really need to change the Armour and the Sword to another Sword . Im making 3D Model Swords with a custom damage etc using Custom items with different Durability values .

Im also making a 3D Model Helmet (using a Normal Minecraft Block) I would Like to put this Armour and Weapons . But can't seem to find how .

I would like to change the Zombie ... How can I do this ???

rotus1122334455 commented 5 years ago

Also Normal Vanilla Zombies Pick up stuff that you throw at them

Scyntrus commented 5 years ago

https://github.com/Scyntrus/FactionMobs/blob/master/src/com/gmail/scyntrus/fmob/mobs/Swordsman.java#L91

rotus1122334455 commented 5 years ago

OK thanks for responding ! so for changing for example from Iron Sword to Wood sword would be : this.setSlot(EnumItemSlot.MAINHAND, new ItemStack(Items.IRON_SWORD)); ==>> this.setSlot(EnumItemSlot.MAINHAND, new ItemStack(Items.WOOD_SWORD));

What I still don't know how to do is how to change the armour ? to for example a Iron Armour ? And how do I put a normal minecraft block into a Soldier ?

Best Regards