Commands let players perform actions and customize gameplay using text-based instructions. Use this topic to share feedback and ideas for improving commands and related tools.

1

Upgraded /execute if command

1 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    sneaking detection could be done now by creating a predicate (e.g. example/predicates/sneaking.json)

    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "flags": {
          "is_sneaking": true
        }
      }
    }

    and calling

    /execute as @a if predicate example:sneaking run …