#new with predicates, how does it work

1 messages · Page 1 of 1 (latest)

gaunt cargo
#

i wanted to do a predicate to check this things

lapis torrentBOT
#

<@&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:1739713770: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

#
⚠️ You already have a question open!

Don't forget to close or resolve your old questions once you're done with them. It makes our lives much easier! :D

Open question: #1340300548443734107

gaunt cargo
#

tried this

prisma cedar
#

That is checking that the player is both at y=54 and y=90, which can never be true

gaunt cargo
#

ah💀

prisma cedar
#

For the second condition, you probably want a location_check

gaunt cargo
#

how can you make to detect if the block at ~ 90 ~ is a barrier

gaunt cargo
prisma cedar
#

Yep

gaunt cargo
#

or to check if one of these is true i need 2

#

if either y is bellow 54 or the block at ~90~ is NOT a barrier then run function

prisma cedar
#

Ok, then you want an any_of predicate

#

I think the default is all_of

gaunt cargo
#

how can you change that?

#

im using this webpage

prisma cedar
#

Yep

gaunt cargo
#

because i never done a predicate bfore

prisma cedar
#

Just create a condition and select Any Of

#

Then add conditions to that list

gaunt cargo
#

uh

#

this is the firstone

#

dosents say all_of

prisma cedar
#

Yeah, you need to change it to "Any Of"

gaunt cargo
#

im in 1.19

gaunt cargo
#

im sorry but where do you have to do that

prisma cedar
gaunt cargo
#

i never done a predicate

prisma cedar
#

It's called something different in 1.19

#

I think it's "Alternatives"? Let me check

#

Yep

#

So where it says "Condition Entity properties", click that dropdown and select "Alternative"

gaunt cargo
#

ah so now

#

now that is the predicate

#

and everytime i add terms is a new condition

#

and if any of them are true this predicate is tru?

#

wait so this is it?

#

if pos y is lower than 55 OR if the block at ~ 90 ~ from the player this is executed at is barrier then it is true?

#

wait no, that is checking if the barrier thing is true