The Meaning of Life, the Universe, and Everything.
Location:
Richmond
Join Date:
8/2/2013
Posts:
51
Member Details
I want a command block to give a player an item, but i only want it to give it to them once. If they activate the command block again it will do nothing. Is this even possible?
The Meaning of Life, the Universe, and Everything.
Location:
Richmond
Join Date:
8/2/2013
Posts:
51
Member Details
i want it set up for a parkour area. i want them to be able to go into it more than once but only get the reward once. i read something about using a comparator and the testfor command but i cant figure it out. i dont know much about redstone and command blocks
Ok. im still a little confused. so i have 3 total command blocks. {button}--->{command block with give command}--->?
2 command blocks, the first command you type in chat.
{button}----> {command block with give command}----> {comparator facing out of command block with give command}----> {command block with scoreboard command}
Rollback Post to RevisionRollBack
The problem with the truth, is that it never lies.
i just tried that and it gives the item everytime it is activated
Did you format the command exactly like I showed you? And did you type the first command into chat first? The first one has to be typed for it to work.
/scoreboard objectives add reward dummy
Rollback Post to RevisionRollBack
The problem with the truth, is that it never lies.
Did you format the command exactly like I showed you? And did you type the first command into chat first? The first one has to be typed for it to work.
/scoreboard objectives add reward dummy
Point a comparator from the original command block to one:
/scoreboard players set @p reward 1
On the original command block, make it so reward has to be 0 or lower. (I don't remember the command)
can you show me a quick diagram. is this the right command? testfor @p [score_tunnel=0,score_tunnel_min=0]
Then, have the button activate the give command with the syntax
Then, have a comparator running out of the give command block and into another with the command
Ok. im still a little confused. so i have 3 total command blocks. {button}--->{command block with give command}--->?
2 command blocks, the first command you type in chat.
{button}----> {command block with give command}----> {comparator facing out of command block with give command}----> {command block with scoreboard command}
Just like this... Note, set the repeater on full delay.
because then noone else would be able to use it
Did you format the command exactly like I showed you? And did you type the first command into chat first? The first one has to be typed for it to work.
Ahh i see. The OP said nothing about multiple players so I assumed there was only one. My bad.
yes i did and still giving more than once.
Then no offense, but you are doing one of the commands wrong, because when I tested it worked when I tested it.
Edit: After a few more tests that one I gave you stopped working, try this instead.
Same commands
Does anyone know how to do this in 1.14.4? Seems like this is outdated.
Wondering the same thing... I'm hoping to tweak it to work with a pressure plate.
im late but how do i do this with mobs and pressure plates instead of items
why is my signature typed