Detecting assigned Keybind

Started by Burnout23 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detecting assigned Keybind

I have a keybind that when pressed will return an item to my hand and i want to display a message to the player so they remember they have that option. I want the the text to say what key to press, but since you can reassign keybinds idk how to make it detect what the player has the keybinds set to, is there a way to do this? ( i see the "get localized text for key" block, but that says the name of the keybind not what the keybind actually is)