#predicte to detect score and tag

1 messages · Page 1 of 1 (latest)

limpid ore
#

id like a predicate to trigger at players that meet this criteria

is it more or less eficient that the command?

normal ravineBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

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

gray silo
#

unfortunately the only way predicates can access tags is through an nbt check, which means it's less efficient than the selector

limpid ore
#

btw is it possible to detect if an spectator uses shift?

gray silo
#

the sneak input predicate should work the same in spectator i believe, yeah

limpid ore
#

have this, not really working

limpid ore
gray silo
#

is_sneaking likely doesn't work in spectator, no. but the sneak predicate under input should

#
        "type_specific": {
            "type": "minecraft:player",
            "input": {
                "sneak": true
            }
        }
    }```
limpid ore
#

idk but for me misode is mind breaking

#

i cant understand anything

gray silo
#

type specific > type "Player" > Input

limpid ore
#

oh yeah i figured out now ty

limpid ore
#
{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "sneak": true
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "jump": true
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "right": true
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "left": true
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "backward": true
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type_specific": {
          "type": "minecraft:player",
          "input": {
            "forward": true
          }
        }
      }
    }
  ]
}
#

is this predicate efficient or is there any way to make it better?

#

need to detect when the player in spectator move presses any keybind like moving or so

normal ravineBOT
# normal ravine <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

hushed zephyr
#

Nope, this is fine

normal ravineBOT
#
Question Closed

Your question, #1379203953174122698 (predicte to detect score and tag), was resolved!

Original Message

#1379203953174122698 message

Duration open

20h8m

normal ravineBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.