#executing a command on stepping a certain block
1 messages · Page 1 of 1 (latest)
execute if block ~~-1~ dirt run ...
I tried but it said failed
If it failed then it means that probably there isn't a dirt block below the executer of the command.
I typed the "slime" block instead
👍
I mean i typed slime block and stepped on it but doesn't work
execute if block ~ ~-1 ~ slime run say hi
Where did you put this command ? A repeating command block ?
It should be:-
/execute as @a at @s if block ~~-1~ slime run say It's so greasy 💀
This worked for me
Aahhh thanks,let me try
i don't understand
I used it in the chat, if you use it elsewhere you should do the same as ammanworks said