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

17

Predicate for keystrokes (Java)

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    I would imagine that existing, and I would do this if it was added!

    data/diejump/predicates/jump:

    {

      "condition": "minecraft:entity_properties",

      "entity": "this",

      "predicate": {

        "keys": {

          "jump": true

        }

      }

    }

    data/diejump/functions/tick:

    kill @a[predicate=diejump:jump]

    A data-pack where if the player jumps, the entity dies!

  • 0
    Registered User commented
    Comment actions Permalink

    Just think about how useful it would be to detect clicks
    without a carrot on a stick
    {

      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "keys": {
          "use": true
        }
      }
    }