I need help with a bit of redstone for my parkour map!
What I want to do is give a player a specific effect when they are on a specific type of block.
Example: When the player stands on red stained clay he dies. When a player stands on blue stained clay they are given speed. When a player stands on yellow stained clay.
The person who replies first with the correct answer will get their PlanetMinecraft name on ADDITIONAL CREDIT for the map I am building at the moment!
What I want to do is give a player a specific effect when they are on a specific type of block.
Example: When the player stands on red stained clay he dies. When a player stands on blue stained clay they are given speed. When a player stands on yellow stained clay.
The person who replies first with the correct answer will get their PlanetMinecraft name on ADDITIONAL CREDIT for the map I am building at the moment!
8
No problem!
Thank you MineMasterXL
Ok now here is what you are looking for. You need the execute command with a detect argument. Here is an example.
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:grass 0 say You are standing on grass.
That makes it so anybody standing on a grass block will be notified they are standing on a grass block.
For your purposes, this would be correct: Replace insertblockhere with the name of the block you want them to stand on and replace the 0 for a data value if applicable.
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:insertblockhere 0 effect @p potion id or name time amplifier
Just customize it and pop it into a command block and run it on a comparator clock or something. You only need one.
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:grass 0 say You are standing on grass.
That makes it so anybody standing on a grass block will be notified they are standing on a grass block.
For your purposes, this would be correct: Replace insertblockhere with the name of the block you want them to stand on and replace the 0 for a data value if applicable.
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:insertblockhere 0 effect @p potion id or name time amplifier
Just customize it and pop it into a command block and run it on a comparator clock or something. You only need one.
Wait it might be...
MarkTheHunt that's not what I'm looking for
