We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

56

Add a simpler way to detect keyboard/mouse inputs with commands

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 5
    Registered User commented
    Comment actions Permalink

    Maybe there could be a scoreboard objective for each keybind such as "minecraft.input:minecraft.jump" that is 0 when not held and increases when held?

    So you can check if it's one and reset to know that it was pressed, and see if it continues increasing to know that it's being held down, such as with the sneaking objective.

  • 0
    Registered User commented
    Comment actions Permalink

    this would be so much easier to detect as with items that requires right click detection but has no right click functionality. And maybe we can create custom key inputs so other keys can be used instead of the same, sneak key, swap key, etc.