#can I make a predicate that is indiscriminate with what movement key I'm holding?

1 messages · Page 1 of 1 (latest)

fathom coral
#

something like the following but it works for any movement key

mild abyssBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1735439367:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

fathom coral
#
    "condition": "minecraft:entity_properties",
    "entity": "this",
    "predicate": {
      "type": "minecraft:player",
      "type_specific": {
        "type":"player",
        "input":{
            "backward": true
          }
      }
    }
  }```
scarlet fulcrum
#

you can ccombine it with an any_of predicate

fathom coral
scarlet fulcrum
#
{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "forward": true
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "backward": true
          }
        }
      }
    },
    {
     ...
    }
  ]
}