To detect when a player is standing on stone and give them a speed boost of 3 for 60 seconds..
The coordinate solution that AJPirate mentioned would work as well but if you intend on them getting the boost for a specific type of block they stand on this is the most efficient way to do it.. if you have say a varient of a block though you need to specify the varient number after the tile name..
So say you want to detect when a person stands on Orange wool it would look like this
To detect when a player is standing on stone and give them a speed boost of 3 for 60 seconds..
The coordinate solution that AJPirate mentioned would work as well but if you intend on them getting the boost for a specific type of block they stand on this is the most efficient way to do it.. if you have say a varient of a block though you need to specify the varient number after the tile name..
So say you want to detect when a person stands on Orange wool it would look like this
I know this is kind of old. but im trying to make soulsand give you wither when you stand on it but it only effects you when your in the air above it. Im using /execute @p ~ ~ ~ detect ~ ~-0.3 ~ minecraft:soul_sand effect @p minecraft:wither 2 2 Ive used /execute @p ~ ~ ~ detect ~ ~ ~ minecraft:soul_sand effect @p minecraft:wither 2 2 and /execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:soul_sand effect @p minecraft:wither 2 2
I know this is kind of old. but im trying to make soulsand give you wither when you stand on it but it only effects you when your in the air above it. Im using /execute @p ~ ~ ~ detect ~ ~-0.3 ~ minecraft:soul_sand effect @p minecraft:wither 2 2 Ive used /execute @p ~ ~ ~ detect ~ ~ ~ minecraft:soul_sand effect @p minecraft:wither 2 2 and /execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:soul_sand effect @p minecraft:wither 2 2
None of which work. PLease help
Stack 2 soul sand on top of each other and then try. The reason it doesn't work is because when you stand on soul sand you sink a bit and i think that messes up the detection.
Stack 2 soul sand on top of each other and then try. The reason it doesn't work is because when you stand on soul sand you sink a bit and i think that messes up the detection.
I want it to work in normal sitatiuons when you encounter soulsand like in the nether.
I want it to work in normal sitatiuons when you encounter soulsand like in the nether.
i used your first command and realized you forgot something. use this command on a fast clock it should work: /execute @p ~ ~ ~ detect ~ ~-0.3 ~ minecraft:soul_sand 0 effect @p minecraft:wither 2 2
i used your first command and realized you forgot something. use this command on a fast clock it should work: /execute @p ~ ~ ~ detect ~ ~-0.3 ~ minecraft:soul_sand 0 effect @p minecraft:wither 2 2
I don't know of any way to do that, unless there's a way to make an invisible pressure plate, or lots of command blocks.
Sorry, but I hope someone else can help you with this.
Have a comparator out of that, that points to this:
/effect @p minecraft:EFFECT_THAT_YOU_WANT DURATION AMPLIFIER
My avatar is not made by ThePiDay, but I'm too lazy to remove this link so it can stay he
should be the format.. then run the command on a fast clock...
so like this:
execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:stone effect @p 1 60 2
To detect when a player is standing on stone and give them a speed boost of 3 for 60 seconds..
The coordinate solution that AJPirate mentioned would work as well but if you intend on them getting the boost for a specific type of block they stand on this is the most efficient way to do it.. if you have say a varient of a block though you need to specify the varient number after the tile name..
So say you want to detect when a person stands on Orange wool it would look like this
execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:wool 1 effect @p 1 60 2
(the 1 after minecraft:wool is the varient code for orange...)
Check out Lets Play awesomeness www.youtube.com/AricaraGames
Subscribe to my youtube channel! www.youtube.com/Darkjgaming
Also note that for the data you can use 0 to detect any type of that block. so "minecraft:wool 0" will make it trigger for every possible color.
Correction: a value of -1 ignores Damage values. Setting to 0 checks for Damage values of 0; in that example, it would be white wool only.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Ah ha, I knew that... My mistake. Thanks for fixing that.
I know this is kind of old. but im trying to make soulsand give you wither when you stand on it but it only effects you when your in the air above it. Im using /execute @p ~ ~ ~ detect ~ ~-0.3 ~ minecraft:soul_sand effect @p minecraft:wither 2 2 Ive used /execute @p ~ ~ ~ detect ~ ~ ~ minecraft:soul_sand effect @p minecraft:wither 2 2 and /execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:soul_sand effect @p minecraft:wither 2 2
None of which work. PLease help
Stack 2 soul sand on top of each other and then try. The reason it doesn't work is because when you stand on soul sand you sink a bit and i think that messes up the detection.
I want it to work in normal sitatiuons when you encounter soulsand like in the nether.
i used your first command and realized you forgot something. use this command on a fast clock it should work: /execute @p ~ ~ ~ detect ~ ~-0.3 ~ minecraft:soul_sand 0 effect @p minecraft:wither 2 2
You forgot a 0 after minecraft:soul_sand =P
That 0 is optional it doesnt fix anything D;
Never mind put the 0 after the effect on accident.
you have to put a 0
i have added the zero and everthing seems to work now but im constantly getting spammed with: [@: Failed to execute 'detect' as djstar25]
is there a way to stop this?