#executing a command on stepping a certain block

1 messages · Page 1 of 1 (latest)

stray laurel
#

Because detect command has been removed in the new execute command,how do i make it again in new way

orchid mango
stray laurel
#

I tried but it said failed

violet furnace
stray laurel
#

I typed the "slime" block instead

violet furnace
#

👍

stray laurel
#
execute if block ~ ~-1 ~ slime run say hi
violet furnace
stray laurel
#

Yes

#

Try it

violet furnace
# stray laurel Yes

It should be:-

/execute as @a at @s if block ~~-1~ slime run say It's so greasy 💀
orchid mango
stray laurel
#

Aahhh thanks,let me try

stray laurel
orchid mango
#

I used it in the chat, if you use it elsewhere you should do the same as ammanworks said

stray laurel
#

ohh thats why it worked

#

The command amman gave,is working

#

The last command one doesn't in command block