How do I reduce the durability of a specific item?

Started by dudu44_game on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Aug 2020
Points:
601

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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"

 

 


 

Active 1 week ago
Joined Feb 2022
Points:
425

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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