its slightly complex but kinda easy at the same time you need a command block looking for a player on certain blocks and when a player walks on it a compatator triggers and hits a command block with what ever.
I'll usually use a testfor system and setblock. Set up a repeating, always-active command block with your basic testfor command, like this one:
/testfor @p[x=X,y=Y,z=Z,r=Radius]
(If you want to be more specific, you can use dx, dy, and dz as well to narrow down the blocks...I'm sure there are tutorials for that online.)
Coming out of the repeating command block, put a chain command block that sets a block of redstone next to a nearby impulse command block. The impulse command block will be whatever you want to trigger.
I usually put a repeater next to where the redstone block will go as well. This repeater leads into another impulse command block which will setblock air in place of the redstone, so it's automatically resetting. You may or may not want to add this feature, depending on if they'll be standing there for a while. (For example, if it's a /say or /tellraw, you don't want the message appearing hundreds of times in chat if they don't move out of the radius.)
Hope this helps!
P.S. There's a spot on the forum for command block and redstone help, as opposed to map postings. You might want to try posting your questions there for a quicker response time and more organized forums!
Hi guys!
I just want to say that if you know how to activate command blocks without triggering anything
to send me a video or explain it in the comments!
It would be apriciateful!
And yeah I am beginner so...
its slightly complex but kinda easy at the same time you need a command block looking for a player on certain blocks and when a player walks on it a compatator triggers and hits a command block with what ever.
I'll usually use a testfor system and setblock. Set up a repeating, always-active command block with your basic testfor command, like this one:
/testfor @p[x=X,y=Y,z=Z,r=Radius]
(If you want to be more specific, you can use dx, dy, and dz as well to narrow down the blocks...I'm sure there are tutorials for that online.)
Coming out of the repeating command block, put a chain command block that sets a block of redstone next to a nearby impulse command block. The impulse command block will be whatever you want to trigger.
I usually put a repeater next to where the redstone block will go as well. This repeater leads into another impulse command block which will setblock air in place of the redstone, so it's automatically resetting. You may or may not want to add this feature, depending on if they'll be standing there for a while. (For example, if it's a /say or /tellraw, you don't want the message appearing hundreds of times in chat if they don't move out of the radius.)
Hope this helps!
P.S. There's a spot on the forum for command block and redstone help, as opposed to map postings. You might want to try posting your questions there for a quicker response time and more organized forums!
Thank you so much!
And yeah,what is the name of that page that you were mentioning?
http://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and
That's what I meant when I said looking for a player on a certain block.