Need Help Making a custom Trident-Like Item with durability

Started by AmosBirb on

Topic category: Help with modding (Java Edition)

Last seen on 15:18, 19. Mar 2024
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.

Last seen on 19:19, 27. Mar 2024
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

 

Last seen on 17:28, 16. Feb 2024
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?

Last seen on 08:13, 30. Dec 2023
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?

Last seen on 15:18, 19. Mar 2024
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