#predicte to detect score and tag
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
unfortunately the only way predicates can access tags is through an nbt check, which means it's less efficient than the selector
alr ty
btw is it possible to detect if an spectator uses shift?
the sneak input predicate should work the same in spectator i believe, yeah
have this, not really working
maybe in spectator is an exception
is_sneaking likely doesn't work in spectator, no. but the sneak predicate under input should
"type_specific": {
"type": "minecraft:player",
"input": {
"sneak": true
}
}
}```
how do you do this in misode?
idk but for me misode is mind breaking
i cant understand anything
type specific > type "Player" > Input
oh yeah i figured out now ty
{
"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
<@&1166082198152159386> <@&1202694677766348840>
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)
Nope, this is fine
Your question, #1379203953174122698 (predicte to detect score and tag), was resolved!
#1379203953174122698 message
20h8m
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.