deal damage to item in player inventory

Started by TomGamerMC on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
deal damage to item in player inventory
Sat, 12/09/2023 - 10:35 (edited)

I basically just want to use this procedure block for the player's inventory: "Deal {Number} damage to item in slot {Number} of block at x: {x} y: {y} z: {z} if it has inventory" 
is there any way to do this?
i want to use this for my jetpack mod, the jetfuel must be in off-hand to be damaged

(any alternative for doing something like this is also VERY appreciated)

 

Edited by TomGamerMC on Sat, 12/09/2023 - 10:35
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
deal 1 dur damage to item in…
Tue, 12/19/2023 - 02:06

deal 1 dur damage to item in offhand
both should be somewhere in item procedures