Hey, so I was wondering if someone was able to help me. I want to make a map where someone has to keep moving or they will die. I am EXTREMELY new to command blocks, just so you know. I am wanting to be able to kill the player if they sneak, but I have no idea what command to place in the command block. I would also like to kill them if they stop moving, but, again, I have no idea what command I would need to put in the command block. If anyone can help me with this issue that would be wonderful.
Next, you want to place two repeat command blocks which are set to "Always Active". These should have the commands:
/kill @a[score_Moving=0]
/scoreboard players set @a[score_Sneaking_min=1] Sneaking 0
Above these command blocks, you need to place two more repeat blocks with the commands:
/scoreboard players set @a[score_Moving_min=1] Moving 0
/kill @a[score_Sneaking_min=1]
This should work....but you may want to have a buffer before activation or else you will die repeatedly. To do this, you will have to set up a little bit more.
Add a scoreboard team like so:
/scoreboard teams add DontStop
Next, change the commands above to include the tag [team=DontStop].
For example, the kill command for sneaking players should appear as:
/kill @a[score_Sneaking_min=1,team=DontStop]
Finally, to start the "game", simply have players join the team with
/scoreboard teams join DontStop
as well as setting their Moving score to a high number repeatedly (so they don't die immediately).
set up a repeat unconditional command block that has
/scoreboard players test @a sneak 1 (DONT put in another number after it JUST put this command in because it will testfor a player with a sneak score that => 1)
On top make a condinonial chain block that does
/kill @a[score_sneak_min=1]
And on top have
/scoreboard players set @a[score_sneak_min=1] sneak 0
Hey, so I was wondering if someone was able to help me. I want to make a map where someone has to keep moving or they will die. I am EXTREMELY new to command blocks, just so you know. I am wanting to be able to kill the player if they sneak, but I have no idea what command to place in the command block. I would also like to kill them if they stop moving, but, again, I have no idea what command I would need to put in the command block. If anyone can help me with this issue that would be wonderful.
This is very simple! Here's how to do it.
First, you want to set up two scoreboards. Run these commands:
/scoreboard objectives add Moving stat.walkOneCm
/scoreboard objectives add Sneaking stat.sneakTime
Next, you want to place two repeat command blocks which are set to "Always Active". These should have the commands:
/kill @a[score_Moving=0]
/scoreboard players set @a[score_Sneaking_min=1] Sneaking 0
Above these command blocks, you need to place two more repeat blocks with the commands:
/scoreboard players set @a[score_Moving_min=1] Moving 0
/kill @a[score_Sneaking_min=1]
This should work....but you may want to have a buffer before activation or else you will die repeatedly. To do this, you will have to set up a little bit more.
Add a scoreboard team like so:
/scoreboard teams add DontStop
Next, change the commands above to include the tag [team=DontStop].
For example, the kill command for sneaking players should appear as:
/kill @a[score_Sneaking_min=1,team=DontStop]
Finally, to start the "game", simply have players join the team with
/scoreboard teams join DontStop
as well as setting their Moving score to a high number repeatedly (so they don't die immediately).
Good luck.
Hello. I am a noob. Help please? Thanks.
Try this:
rapidly powered cblock with the command:
/excute @a ~ ~ ~ /summon PrimedTnt ~ ~ ~ {[whatever the NBT for 5 second fuse is idk]}
I'd also give them regen 10 so they don't die from a flying tnt. command for that is /effect @a regeneration 10 100000
If your in 1.9 just do this...
/scoreboard objectives add sneak stat.sneakTime
set up a repeat unconditional command block that has
/scoreboard players test @a sneak 1 (DONT put in another number after it JUST put this command in because it will testfor a player with a sneak score that => 1)
On top make a condinonial chain block that does
/kill @a[score_sneak_min=1]
And on top have
/scoreboard players set @a[score_sneak_min=1] sneak 0