#path for directions

1 messages · Page 1 of 1 (latest)

sharp pine
#

basically i wanna make it so if the block im standing on is facing east the command runs which i assume has to do with the path when you do data block ~ ~-1 ~ path but i dont know what paths are and what i should put

noble drumBOT
#

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

celest charm
#

What do you mean by "is east"?

sharp pine
#

facing east

#

mbmb

#

but yeah like if the block im on faces east i want the command to run

sharp pine
celest charm
#

Again, what does "faces east" mean? Most blocks are just directionless cubes

sharp pine
#

but some arent

#

sunflowers, terracotta blocks

#

chests, furnaces

#

a good chunk are diretion

#

al

celest charm
#

Ok, well you can probably use the facing blockstate

#

I'm not sure if all directional blocks have it, but many do

sharp pine
#

how would i like check that in an execute command

celest charm
#

Ok, well you would need to create a block-tag which contained all the directional blocks (or all blocks, doesn't really matter), because you can't specify a wildcard for block matching

#

Then it's execute if block ~ ~-1 ~ #namespace:directional[facing=east] run say Facing east

sharp pine
#

alr

#

thanks man

#

or woman

#

whatever but thanks