#Block Name by Molang

1 messages · Page 1 of 1 (latest)

short blaze
#

is there a Molang query to to return the name of the block you are standing on or looking at? if not, how to detect a block without scripting?

earnest dragon
#

via molang you can detect the tag of a block, not the identifier

Yoi can detect the identifier via execute command

short blaze
#

but how do i switch state via execute command?

earnest dragon
short blaze
#

it's the mob spawner

#

i may use /execute if block ~~-1~ mob_spawner run... but how does that help?

earnest dragon
#

the tag for mob_spawner is literally 'mob_spawner'

short blaze
#

ok, is the query experimental?

earnest dragon
#

Yes

short blaze
#

so what to use as a parameter? what does world-origin-relative position means?