Damage items in item inventory

Started by Shminecrafter on Wed, 07/13/2022 - 15:22

Topic category: Help with modding (Java Edition)

Last seen on 14:30, 14. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Damage items in item inventory
Wed, 07/13/2022 - 15:22

I have an item with an inventory and I have it so when I swing the item it does something. I also want it to take damage. I can't figure out a way to make the item inside take damage.

Procedure

Last seen on 16:37, 5. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well I think theres a block…
Wed, 07/13/2022 - 15:26

Well I think theres a block that says deal one damage to provided itemsack.

Last seen on 14:30, 14. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is, but I can't find a…
Wed, 07/13/2022 - 15:31

There is, but I can't find a way to select the item in the inventory (only a copy)

 

Last seen on 16:37, 5. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well why do you have a copy…
Thu, 07/14/2022 - 14:52

Well why do you have a copy you could just do has item in inventory of source entity