1

Need help with command blocks

DaCool1 7/19/14 10:46 am
852
7/21/2014 7:15 pm
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!
Posted by
DaCool1
Level 1 : New Explorer
1

  Have something to say?

JoinSign in

25

Skitto493
07/21/2014 7:15 pm
Level 55 : Grandmaster Dragon
Okay, you have to use several /fills to bypass the fill limit. It's the only way. Sorry.
1
bio
07/20/2014 7:54 pm
She/Her • Level 51 : Grandmaster Magical Girl Sniffer
This is simpler, it uses one command block on a clock :p
execute @a ~ ~ ~ detect ~ ~ ~ water 0 kill @p
1
Histor the Noob
07/19/2014 12:26 pm
Level 28 : Expert Geek
Dude, /kill works in command blocks, just don't do @a or, in snapshots, @e as they get everything
1
DaCool1
07/19/2014 12:05 pm
Level 1 : New Explorer
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
1
DaCool1
07/19/2014 11:55 am
Level 1 : New Explorer
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?
1
Skitto493
07/19/2014 11:48 am
Level 55 : Grandmaster Dragon
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 :/
1
DaCool1
07/19/2014 11:41 am
Level 1 : New Explorer
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...
1
Pepijn
07/19/2014 11:39 am
Level 58 : Grandmaster Cyborg
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).
1
DaCool1
07/19/2014 11:47 am
Level 1 : New Explorer
Now I'm dying forever...
1
Karrfis
07/19/2014 11:36 am
They/Them • Level 35 : Artisan uwu uwu
can you not testfor when a player is touching water?
or is that not implemented in command blocks yet
1
Histor the Noob
07/19/2014 11:37 am
Level 28 : Expert Geek
You can use a scoreboard...
1
GamerGeeked
07/19/2014 11:28 am
Level 15 : Journeyman Geek
...about the same thing!!!
1
GamerGeeked
07/19/2014 11:27 am
Level 15 : Journeyman Geek
no fair! people posted while I was posting!!!
1
GamerGeeked
07/19/2014 11:27 am
Level 15 : Journeyman Geek
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
1
Histor the Noob
07/19/2014 11:29 am
Level 28 : Expert Geek
I wouldn't do /kill @a... that would kill EVERYONE
1
DaCool1
07/19/2014 11:32 am
Level 1 : New Explorer
Yeah, and I want to only kill specific people.
1
anonpmc476721
07/19/2014 12:05 pm
Level 10 : Journeyman Miner
[deleted]
1
Histor the Noob
07/19/2014 11:35 am
Level 28 : Expert Geek
Eeeeeeyup, only ones that touch water should be killed.
1
TVR_
07/19/2014 11:25 am
Level 36 : Artisan Network
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
1
Histor the Noob
07/19/2014 11:26 am
Level 28 : Expert Geek
That is what I was thinking, but in less detail. XD
1
Histor the Noob
07/19/2014 11:19 am
Level 28 : Expert Geek
Try a /kill command that kills any player that touches water.
1
DaCool1
07/19/2014 11:03 am
Level 1 : New Explorer
Seth's not gonna respond...
1
Histor the Noob
07/19/2014 11:02 am
Level 28 : Expert Geek
Report to SethBling for help!
1
bio
07/19/2014 11:39 am
She/Her • Level 51 : Grandmaster Magical Girl Sniffer
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
1
Histor the Noob
07/19/2014 11:40 am
Level 28 : Expert Geek
XD I like how you quoted my first comment
1

Welcome