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
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
Create an account or sign in to comment.
3
1
Nevermind working
Thx alot !
Thx alot !
1
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
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
Thx its working but the texture doesnt work
it was working before i made it into a sword
it was working before i made it into a sword