Hydration
Hydration by ChaoticRedstone1474493    3
This machine adds another survival feature to make your minecraft experience much more realistic! Drinking water to stay alive!
Minecraft 1.9
13684 characters
More by ChaoticRedstone
How to install
Comments
Show source commands
summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:fill ~2 ~-3 ~-2 ~8 ~2 ~2 stained_hardened_clay 8 hollow},{id:MinecartCommandBlock,Command:fill ~2 ~-2 ~-2 ~8 ~1 ~2 stained_glass 5 0 stained_hardened_clay},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Hydration/Thirst In One Command By ChaoticRedstone\",\"color\":\"dark_red\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"[\",\"color\":\"red\"},{\"text\":\"TERMS OF USE\",\"color\":\"gold\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Credit me and put a link to my channel in the video/project!\"}]}}},{\"text\":\"]\",\"color\":\"red\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Click Here to Visit My YouTube Channel!\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.youtube.com/channel/UC-ZmwjbZQ9JZlgD0I28O7Qw\"}}]"},{id:MinecartCommandBlock,Command:/scoreboard objectives add YourStats dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add hydra dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add t dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add run stat.sprintOneCm},{id:MinecartCommandBlock,Command:/scoreboard objectives add j stat.jump},{id:MinecartCommandBlock,Command:/scoreboard objectives add drink stat.useItem.minecraft.potion},{id:MinecartCommandBlock,Command:/scoreboard objectives add m stat.useItem.minecraft.melon},{id:MinecartCommandBlock,Command:/scoreboard objectives add a stat.useItem.minecraft.apple},{id:MinecartCommandBlock,Command:/scoreboard objectives add ms stat.useItem.minecraft.mushroom_stew},{id:MinecartCommandBlock,Command:/scoreboard objectives add bs stat.useItem.minecraft.beetroot_soup},{id:MinecartCommandBlock,Command:/scoreboard objectives add mb stat.useItem.minecraft.milk_bucket},{id:MinecartCommandBlock,Command:/scoreboard players set @a hydra 100},{id:MinecartCommandBlock,Command:/scoreboard objectives setdisplay sidebar YourStats},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"------------------\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @p [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"Thanks For Using My Command! :D\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"}]\\\"}}",Text2:"{\\\"text\\\":\\\"Destroy\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/particle splash ~ ~ ~ 5 5 5 0.01 1000\\\"},\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Machine\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"------------------\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-2 ~-2 ~7 ~3 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"------------------\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @p [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"Click here to watch the explanation video!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"https://www.youtube.com/watch?v=CclXTlMeYb0&feature=youtu.be\\\\\\\"}}]\\\"}}",Text2:"{\\\"text\\\":\\\"Click For\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Help\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"------------------\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~1 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"------------------\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players add @e[type=ArmorStand,name=TogAct,c=1] Z2g5lV_A 1\\\"}}",Text2:"{\\\"text\\\":\\\"Deactivate\\\",\\\"color\\\":\\\"red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_Z2g5lV_A_min=1,score_Z2g5lV_A=1] ~ ~ ~ blockdata ~ ~ ~ {auto:0}\\\"},\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Activate\\\",\\\"color\\\":\\\"green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_Z2g5lV_A_min=2] ~ ~ ~ blockdata ~ ~ ~ {auto:1}\\\"},\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"------------------\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players reset @e[score_Z2g5lV_A_min=2] Z2g5lV_A\\\"}}"}},{id:MinecartCommandBlock,Command:summon ArmorStand ~3 ~-2 ~-1 {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}},{id:MinecartCommandBlock,Command:scoreboard objectives add Z2g5lV_A dummy},{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~-1 ~7 ~1 ~1 chain_command_block 5},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~1 chain_command_block 2},{id:MinecartCommandBlock,Command:fill ~7 ~1 ~1 ~4 ~1 ~1 chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~1 chain_command_block 1},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 3},{id:MinecartCommandBlock,Command:fill ~7 ~ ~ ~4 ~ ~ chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1},{id:MinecartCommandBlock,Command:fill ~7 ~-1 ~-1 ~4 ~-1 ~-1 chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2},{id:MinecartCommandBlock,Command:fill ~7 ~-1 ~1 ~4 ~-1 ~1 chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3},{id:MinecartCommandBlock,Command:fill ~7 ~-2 ~ ~4 ~-2 ~ chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5},{id:MinecartCommandBlock,Command:blockdata ~3 ~1 ~ {auto:1,Command:/scoreboard players set @a mb 0}},{id:MinecartCommandBlock,Command:blockdata ~3 ~1 ~1 {auto:1,Command:/scoreboard players set @a ms 0}},{id:MinecartCommandBlock,Command:blockdata ~4 ~1 ~1 {auto:1,Command:/scoreboard players set @a bs 0}},{id:MinecartCommandBlock,Command:blockdata ~5 ~1 ~1 {auto:1,Command:/scoreboard players set @a a 0}},{id:MinecartCommandBlock,Command:blockdata ~6 ~1 ~1 {auto:1,Command:/scoreboard players set @a m 0}},{id:MinecartCommandBlock,Command:blockdata ~7 ~1 ~1 {auto:1,Command:/scoreboard players set @a drink 0}},{id:MinecartCommandBlock,Command:blockdata ~7 ~ ~1 {auto:1,Command:/execute @a[score_mb_min=1] ~ ~ ~ /say Mmmmm}},{id:MinecartCommandBlock,Command:blockdata ~6 ~ ~1 {auto:1,Command:/execute @a[score_mb_min=1] ~ ~ ~ /scoreboard players add @a hydra 10}},{id:MinecartCommandBlock,Command:blockdata ~5 ~ ~1 {auto:1,Command:/execute @a[score_bs_min=1] ~ ~ ~ /say Slurrrrrp!}},{id:MinecartCommandBlock,Command:blockdata ~4 ~ ~1 {auto:1,Command:/execute @a[score_bs_min=1] ~ ~ ~ /scoreboard players add @a hydra 10}},{id:MinecartCommandBlock,Command:blockdata ~3 ~ ~1 {auto:1,Command:/execute @a[score_ms_min=1] ~ ~ ~ /say Yum!}},{id:MinecartCommandBlock,Command:blockdata ~3 ~ ~ {auto:1,Command:/execute @a[score_ms_min=1] ~ ~ ~ /scoreboard players add @a hydra 10}},{id:MinecartCommandBlock,Command:blockdata ~4 ~ ~ {auto:1,Command:/execute @a[score_a_min=1] ~ ~ ~ /say Nom Nom Nom}},{id:MinecartCommandBlock,Command:blockdata ~5 ~ ~ {auto:1,Command:/execute @a[score_a_min=1] ~ ~ ~ /scoreboard players add @a hydra 5}},{id:MinecartCommandBlock,Command:blockdata ~6 ~ ~ {auto:1,Command:/execute @a[score_m_min=1] ~ ~ ~ /say This watermelon has a lot of juice!}},{id:MinecartCommandBlock,Command:blockdata ~7 ~ ~ {auto:1,Command:/execute @a[score_m_min=1] ~ ~ ~ /scoreboard players add @a hydra 8}},{id:MinecartCommandBlock,Command:blockdata ~7 ~ ~-1 {auto:1,Command:/execute @a[score_drink_min=1] ~ ~ ~ /say Ahhhh, Refreshing!}},{id:MinecartCommandBlock,Command:blockdata ~6 ~ ~-1 {auto:1,Command:/execute @a[score_drink_min=1] ~ ~ ~ /scoreboard players add @a hydra 10}},{id:MinecartCommandBlock,Command:blockdata ~5 ~ ~-1 {auto:1,Command:/scoreboard players set @a[score_j_min=20] j 1}},{id:MinecartCommandBlock,Command:blockdata ~4 ~ ~-1 {auto:1,Command:/scoreboard players remove @a[score_j_min=20] hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~3 ~ ~-1 {auto:1,Command:/scoreboard players set @a[score_run_min=2000] run 1}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~-1 {auto:1,Command:/scoreboard players remove @a[score_run_min=2000] hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~-1 {auto:1,Command:/scoreboard players set @a[score_t_min=2000] t 1}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~-1 {auto:1,Command:/scoreboard players remove @a[score_t_min=2000] hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~-1 {auto:1,Command:/execute @a ~ ~ ~ detect ~ ~3 ~ air 0 /scoreboard players add @a t 1}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~-1 {auto:1,Command:/execute @a ~ ~ ~ detect ~ ~-1 ~ netherrack 0 /scoreboard players add @a t 1}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~ {auto:1,Command:/execute @a ~ ~ ~ detect ~ ~-1 ~ magma 0 /scoreboard players add @a t 1}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~ {auto:1,Command:/execute @a ~ ~ ~ detect ~ ~-1 ~ sand 0 /scoreboard players add @a t 1}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~ {auto:1,Command:/scoreboard players add @a t 1}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~ {auto:1,Command:/execute @a[score_hydra=0] ~ ~ ~ /scoreboard players set @a hydra 100}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~ {auto:1,Command:/kill @a[score_hydra=0]}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~1 {auto:1,Command:"/execute @a[score_hydra=0] ~ ~ ~ /tellraw @p [\\\"\\\",{\\\"text\\\":\\\"You Have Died From Dehydration\\\",\\\"color\\\":\\\"dark_red\\\"}]"}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~1 {auto:1,Command:/execute @a[score_hydra_min=6,score_hydra=6] ~ ~ ~ /scoreboard players remove @a hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~1 {auto:1,Command:/effect @a[score_hydra_min=1,score_hydra=6] minecraft:nausea 2 1}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~1 {auto:1,Command:/effect @a[score_hydra_min=1,score_hydra=6] minecraft:slowness 2 1}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~1 {auto:1,Command:/effect @a[score_hydra_min=1,score_hydra=6] minecraft:mining_fatigue 2 3}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~1 {auto:1,Command:/effect @a[score_hydra_min=1,score_hydra=6] minecraft:weakness 2 3}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~1 {auto:1,Command:"/execute @a[score_hydra_min=6,score_hydra=6] ~ ~ ~ /tellraw @p [\\\"\\\",{\\\"text\\\":\\\"You Are Serverly Dehydrated, Drink Water Now!\\\",\\\"color\\\":\\\"gold\\\"}]"}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~1 {auto:1,Command:/execute @a[score_hydra_min=21,score_hydra=21] ~ ~ ~ /scoreboard players remove @a hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~1 {auto:1,Command:/effect @a[score_hydra_min=6,score_hydra=21] minecraft:slowness 2 0}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~1 {auto:1,Command:/effect @a[score_hydra_min=6,score_hydra=21] minecraft:mining_fatigue 2 0}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~ {auto:1,Command:/effect @a[score_hydra_min=6,score_hydra=21] minecraft:weakness 2 1}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~ {auto:1,Command:"/execute @a[score_hydra_min=21,score_hydra=21] ~ ~ ~ /tellraw @p [\\\"\\\",{\\\"text\\\":\\\"You Are Very Dehydrated\\\",\\\"color\\\":\\\"gold\\\"}]"}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~ {auto:1,Command:/execute @a[score_hydra_min=51,score_hydra=51] ~ ~ ~ /scoreboard players remove @a hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~ {auto:1,Command:/effect @a[score_hydra_min=21,score_hydra=51] minecraft:weakness 2 0}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~ {auto:1,Command:"/execute @a[score_hydra_min=51,score_hydra=51] ~ ~ ~ /tellraw @p [\\\"\\\",{\\\"text\\\":\\\"You Are Getting Very Thirsty\\\",\\\"color\\\":\\\"gold\\\"}]"}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~-1 {auto:1,Command:/execute @a[score_hydra_min=81,score_hydra=81] ~ ~ ~ /scoreboard players remove @a hydra 1}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~-1 {auto:1,Command:"/execute @a[score_hydra_min=81,score_hydra=81] ~ ~ ~ /tellraw @p [\\\"\\\",{\\\"text\\\":\\\"You Are Slighty Thirsty\\\",\\\"color\\\":\\\"gold\\\"}]"}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~-1 {auto:1,Command:/execute @a[score_hydra=0] ~ ~ ~ /scoreboard players set @a hydra 0}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~-1 {auto:1,Command:/execute @a[score_hydra_min=100,score_hydra=200] ~ ~ ~ /scoreboard players set @a hydra 100}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~-1 {auto:1,Command:/scoreboard players operation Hydration YourStats = @a hydra}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 0 {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}