Right Click Event delay

Started by RuZZn on

Topic category: Help with modding (Java Edition)

Last seen on 17:12, 8. Feb 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right Click Event delay

 I'm trying to create a simple key store (that actually can only contain 1 key).
The block have three states, closed - opened with key - opened empty.
When player right clicks at the closed it replaces with opened with key, and opened with key state have a right click event to give player a key and replace opened with key to opened empty.
 My problem is in right click event delay. When player clicks at closed key store it should open, and then player should click one more time to take the key, but instead, player gets the key immediately, and key store becomes opened empty when player clicks only one time at the closed key store.

Last seen on 17:12, 8. Feb 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, i just needed to…
Mon, 01/23/2023 - 14:30

Okay, i just needed to remove the right click event :D