Started by
AmosBirb
on
Topic category: Help with Minecraft modding (Java Edition)
I have been having difficulty making an axe that can be thrown like a trident. I have followed NorthWestTreesGaming's tutorials (both V1 and V2) and my only problem is that I want to change the axe's durability each time it is used. Any recommendations?
Right now I have the projectile use itself as ammo, it has a custom model and UV map and spawn the same item when it hits a block or entity. Ideally it can behave near identically to the trident, loyalty and al, but right now I'll take what I can get.
In MCreator is tags with type like itemstack, you can spawn item with properties from this variable
Or use itemstack.copy in coding : D
How did you get the weapon to lock onto the block and come back like a trident with the loyalty enchantment?
Where exactly do I put itemstack.copy, though? Or am I just stupid?
@marzales23 I did it by having the projectile entity create a copy of itself in the players inventory on hitting a block or entity. the itemstack.copy worked btw