Need Help Making a custom Trident-Like Item with durability

Started by AmosBirb on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need Help Making a custom Trident-Like Item with durability

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.

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In MCreator is tags with…
Sun, 06/05/2022 - 07:42

In MCreator is tags with type like itemstack, you can spawn item with properties from this variable

 

Or use itemstack.copy in coding : D

 

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How did you get the weapon…
Mon, 09/19/2022 - 21:43

How did you get the weapon to lock onto the block and come back like a trident with the loyalty enchantment?

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where exactly do I put…
Mon, 05/29/2023 - 01:06

Where exactly do I put itemstack.copy, though? Or am I just stupid?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@marzales23 I did it by…
Sat, 02/17/2024 - 15:17

@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