I'm trying to work on one of my older maps, and I haven't played Minecraft in a while. Command blocks have changed so much, and I need help converting one of my commands, the others were an easy fix. I need the command block to be able to detect when a player is standing on a certain block like red wool, and kill them, and for other colors like black wool, give them slowness. Can someone help me?
Ah thank you so much! They worked just like they did with old command blocks and testfor commands. Just wondering because I forget this as well, how do you get rid of the logs in chat like in this picture?
I'm trying to work on one of my older maps, and I haven't played Minecraft in a while. Command blocks have changed so much, and I need help converting one of my commands, the others were an easy fix. I need the command block to be able to detect when a player is standing on a certain block like red wool, and kill them, and for other colors like black wool, give them slowness. Can someone help me?
/execute at @a if block ~ ~-1 ~ minecraft:red_wool run kill @p
/execute at @a if block ~ ~-1 ~ minecraft:black_wool run effect @p minecraft:slowness [However Long] [However Strong] true
Those SHOULD work, but I probably could have simplified some of them and so on... Sorry can't test them at the moment, but hopefully they work :).
Please, everyone, if your post is solved, edit the name and mark it [SOLVED]. Period.
Ah thank you so much! They worked just like they did with old command blocks and testfor commands. Just wondering because I forget this as well, how do you get rid of the logs in chat like in this picture?
[EDIT]: Nevermind I fixed it, gamerule lol