Using Player Sneak (or external hotkey) as a procedure trigger

Started by Spicato on

Topic category: Help with modding (Java Edition)

Last seen on 17:37, 1. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using Player Sneak (or external hotkey) as a procedure trigger

I'm trying to keep players from having to use their inventories as much as possible and I'd like to be able to switch between different versions of an item using some sort of a hot key. Is there a way to set a hot key as a trigger? I can figure out the rest of the procedure, just need the starting point!

 

Event logic.

Player has Building_Rock in hand

Player sneaks or presses a non vanilla hotkey

Item in hand converts to Throwing_Rock

Player presses hotkey again

Throwing_Rock converts back to Building_Rock

Last seen on 10:52, 5. Jun 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Press [+] then press K (or…
Thu, 04/22/2021 - 08:28

Press [+] then press K (or click Keybind) and you can make a keybind. Easy.