Hello.
I am making a flood escape map using command blocks. But I need a way to kill the player if they get caught by the water. I have the rest planned, so it'd be really nice if I could get help. I also need a way to increase the /clone and /fill limit. 4,086 isn't enough!
I am making a flood escape map using command blocks. But I need a way to kill the player if they get caught by the water. I have the rest planned, so it'd be really nice if I could get help. I also need a way to increase the /clone and /fill limit. 4,086 isn't enough!
25
Report to SethBling for help!
Sethbling is not the best, Try watching Dragnoz or Sarc's videos. This command should work but only in snapshot /execute @a ~ ~ ~ detect ~ ~ ~ water 0 say hello Just replace "say hello" with watever you need, a scoreboard or kill or such
Or use Sarc's method https://www.youtube.com/watch?v=ZMHWQOmgJWY
Or use Sarc's method https://www.youtube.com/watch?v=ZMHWQOmgJWY
XD I like how you quoted my first comment
Seth's not gonna respond...
Try a /kill command that kills any player that touches water.
if you set up a scoreboard testing if a player is touching water then do what seth does on the building game to give people coal except replace /give with /kill and replace the scoreboard objectives with your scoreboard
That is what I was thinking, but in less detail. XD
do
/scoreboard objectives set O swim.one.cm O
make a command block (constant) saying:
/scoreboard test @a O 1
place a comparator in front and a command block saying
kill @a
/scoreboard objectives set O swim.one.cm O
make a command block (constant) saying:
/scoreboard test @a O 1
place a comparator in front and a command block saying
kill @a
I wouldn't do /kill @a... that would kill EVERYONE
Yeah, and I want to only kill specific people.
Eeeeeeyup, only ones that touch water should be killed.
[deleted]
no fair! people posted while I was posting!!!
...about the same thing!!!
can you not testfor when a player is touching water?
or is that not implemented in command blocks yet
or is that not implemented in command blocks yet
You can use a scoreboard...
Make an objective: /scoreboard objectives add Swim stat.swimOneCm Swim
then make a clock with this command attached to it: /kill @a[score_Swim_min=1], also add some delay and this command after that: /scoreboard players set @a[score_Swim_min=1] Swim 0
Problem is that it only works for horizontal movement :/, so players actually have to move before they get killed.
So if you are working in the snapshots you can do this as well: /execute @a ~ ~ ~ detect ~ ~ ~ water 0 kill @p
This also has a problem, it only works with water source blocks, you can add more to cover all stages of water (just change the 0 to 1, then to 2 etc.) but you can also use the swimOneCm again (since you will move in water streams).
then make a clock with this command attached to it: /kill @a[score_Swim_min=1], also add some delay and this command after that: /scoreboard players set @a[score_Swim_min=1] Swim 0
Problem is that it only works for horizontal movement :/, so players actually have to move before they get killed.
So if you are working in the snapshots you can do this as well: /execute @a ~ ~ ~ detect ~ ~ ~ water 0 kill @p
This also has a problem, it only works with water source blocks, you can add more to cover all stages of water (just change the 0 to 1, then to 2 etc.) but you can also use the swimOneCm again (since you will move in water streams).
Now I'm dying forever...
Pepijn96Make an objective: /scoreboard objectives add Swim stat.swimOneCm Swim
then make a clock with this command attached to it: /kill @a[score_Swim_min=1], also add some delay and this command after that: /scoreboard players set @a[score_Swim_min=1] Swim 0
Your way appears to be good. Now I'll test it out...
First type in /scoreboard objectives add Swim swim.one.cm Swim
Then, put a a clock onto a command block, with the command block saying
/kill @a[score_Swim_min=1]
Finally, add a comperator coming out of the kill command block, into another command block saying /scoreboard players set @a[score_Swim_min=1] Swim 0
Works only in snapshots :/
Then, put a a clock onto a command block, with the command block saying
/kill @a[score_Swim_min=1]
Finally, add a comperator coming out of the kill command block, into another command block saying /scoreboard players set @a[score_Swim_min=1] Swim 0
Works only in snapshots :/
Thanks, it's working now. But now I need a way to CLEAR the water. Due to the 4,086 block limit, I can't do it! Can anyone tell me a way to BYPASS the limit?
Also, it seems to only work ONCE. Help?
Also, it seems to only work ONCE. Help?
All I need now is a way to bypass the /fill limit. Any help?
Specifically: A way to clear the level (Once the game ends) and clone new levels in
Specifically: A way to clear the level (Once the game ends) and clone new levels in
Dude, /kill works in command blocks, just don't do @a or, in snapshots, @e as they get everything
This is simpler, it uses one command block on a clock :p
execute @a ~ ~ ~ detect ~ ~ ~ water 0 kill @p
execute @a ~ ~ ~ detect ~ ~ ~ water 0 kill @p
Okay, you have to use several /fills to bypass the fill limit. It's the only way. Sorry.
