Need Help dealing damage to an Item in a GUI Slot and Damage it.

Started by Cubikore on

Topic category: Help with modding (Java Edition)

Last seen on 16:35, 14. Aug 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need Help dealing damage to an Item in a GUI Slot and Damage it.
Sat, 05/06/2023 - 18:14 (edited)

I'm currently working on a project where I have a GUI with slots, and I want to bind an item placed in one of the GUI slots to a specific block. The goal is to be able to retrieve the item from the GUI and damage it using the update tick for the block. However, I'm facing some difficulties in achieving this and would greatly appreciate any help.

Here's a breakdown of what I'm trying to achieve:

  1. I have a GUI with several slots.
  2. When I place an item in a particular slot, I want it to be bound to a specific block in the game.
  3. Once the item is bound to the block, I need to be able to retrieve it from the GUI and damage it.

I've tried a few approaches, but I haven't been successful in achieving the desired functionality. I'm hoping that someone can give me some insights or suggestions on how to accomplish this.

Edited by Cubikore on Sat, 05/06/2023 - 18:14