deal damage to item in player inventory

Started by TomGamerMC on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Dec 2023
Points:
144

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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
Active 1 year ago
Joined Dec 2023
Points:
142

User statistics:

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