How do I reduce the durability of a specific item?

Started by dudu44_game on

Topic category: Help with modding (Java Edition)

Last seen on 23:16, 29. May 2024
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I reduce the durability of a specific item?
I'm interested in creating a weapon where the ammunition is its own durability. I'm having trouble finding the command that reduces the item's durability. I tried several approaches, but without success. Could you help me find this command so that my gun works correctly?

Ícone "Verificada pela comunidade"

 

 


 

Last seen on 23:04, 26. May 2024
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item procedures -> Deal x…
Sat, 05/25/2024 - 17:08

Item procedures -> Deal x damage to Provided itemstack. Use that to reduce your ammunition's durability. I think that's it