Is there any way to detect keybinds in inventory? (Or maybe another workaround for this)

Started by EnbyAkira on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there any way to detect keybinds in inventory? (Or maybe another workaround for this)

So i made a mod that lets Twitch Chat trigger effects like spawn a creeper, jumpscare me, let me fly for 10 sec etc. Wich works fine, a external program detects if a chatter donates bits or redeems channel rewards and gives a key input wich triggers the procedure, my only issue is that it doesnt work in inventory, so my mods need to trigger that procedure with commands, wich is kinda annoying over time and the key element of all of this is, that it could happen any time

Is there a way to allow keys being pressed in the inventory, or is there maybe another way to trigger this?