1

MCP Item Damage ?

Spect99's Avatar Spect9910/12/13 10:27 am
1 emeralds 238 3
10/12/2013 10:47 am
Spect99's Avatar Spect99
Hello guys , so i was modding today and i wanted that when we hit a mob with the item it does damage like a wood sword for exemple , but i dont understand anything about
the EnumToolMaterial things , i saw some tutorial on how to make a sword ( thats not what i want ) but i always get errors.
So , is there another way ?
Thx for thoses who will answer
Posted by Spect99's Avatar
Spect99
Level 43 : Master Droid
46

Create an account or sign in to comment.

3

1
10/12/2013 10:47 am
Level 43 : Master Droid
Spect99
Spect99's Avatar
Nevermind working
Thx alot !
1
10/12/2013 10:36 am
Level 54 : Grandmaster Programmer
nickfromgreece
nickfromgreece's Avatar
1. If you dont aready use forge
2.to make a tool item:
1. Register a new material with EnumToolMaterial
2. create a new item as usual extending ItemSword or ItemSpade or ItemPickaxe
3. Call the items constructor as usual and for the material parameter in the constructor use the EnumToolMaterial object you made
1
10/12/2013 10:44 am
Level 43 : Master Droid
Spect99
Spect99's Avatar
Thx its working but the texture doesnt work
it was working before i made it into a sword
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome