Right-click on the entity with the item

Started by Dallahin on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right-click on the entity with the item

I want to create a chest entity. When a player clicks with their right hand holding a key, a specific item drops from the chest. The item drop itself works, but the problem is that the key in the right hand does not see the chest and does not open it. How can I solve this issue?

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem may be one of…
Tue, 01/13/2026 - 20:09

The problem may be one of the following:

  1. You didn't add the procedure (which I doubt).
  2. You created a procedure using the "Player right-clicked on entity" trigger.

If this is the second case, you need to replace the blocks associated with the player from "Event/Target Entity" to "Source Entity", it is located in the "Minecraft Components" tab.