Advertisement
MattCrafts

Thirst

Apr 5th, 2016
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. 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 ~4 ~-3 ~-2 ~10 ~-1 ~2 stained_hardened_clay 11 hollow"},{id:MinecartCommandBlock,Command:"fill ~4 ~-2 ~-2 ~10 ~-2 ~2 stained_glass 11 replace stained_hardened_clay"},{id:MinecartCommandBlock,Command:"scoreboard objectives add Drink stat.useItem.minecraft.potion"},{id:MinecartCommandBlock,Command:"scoreboard objectives add Thirst dummy"},{id:MinecartCommandBlock,Command:"tellraw @a {\"text\":\"Thirst module by MattCrafts has been successfully installed\",\"bold\":true,\"color\":\"aqua\"}"},{id:MinecartCommandBlock,Command:setblock ~3 ~-3 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Click to\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players add @e[type=ArmorStand,name=TogAct,c=1] rqulAX_A 1\\\"}}",Text2:"{\\\"text\\\":\\\"Activate\\\",\\\"color\\\":\\\"green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_rqulAX_A_min=1,score_rqulAX_A=1] ~ ~ ~ blockdata ~ ~ ~ {auto:0}\\\"},\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Deactivate\\\",\\\"color\\\":\\\"red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_rqulAX_A_min=2] ~ ~ ~ blockdata ~ ~ ~ {auto:1}\\\"},\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players reset @e[score_rqulAX_A_min=2] rqulAX_A\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"Click to\\\",\\\"color\\\":\\\"black\\\"}",Text3:"{\\\"text\\\":\\\"remove\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-1 ~-2 ~7 ~1 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:"summon ArmorStand ~5 ~-2 ~-1 {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}"},{id:MinecartCommandBlock,Command:"scoreboard objectives add rqulAX_A dummy"},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"tellraw @a[score_Thirst_min=40000,score_Thirst=40000] {\\\"text\\\":\\\"You are very thirsty! Drink something quick!\\\",\\\"bold\\\":true,\\\"color\\\":\\\"dark_aqua\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"effect @a[score_Thirst_min=40000] minecraft:nausea 10 2 true"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"tellraw @a[score_Thirst_min=22500,score_Thirst=22500] {\\\"text\\\":\\\"You're looking pretty bad there. I'd drink some water before it gets worse.\\\",\\\"bold\\\":true,\\\"color\\\":\\\"dark_aqua\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"effect @a[score_Thirst_min=22500] minecraft:hunger 2 0 true"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_Thirst_min=22500] minecraft:mining_fatigue 2 1 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_Thirst_min=22500] minecraft:slowness 2 2 true"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_Thirst_min=21300,score_Thirst=22500] minecraft:mining_fatigue 2 0 true"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_Thirst_min=21300,score_Thirst=22500] minecraft:slowness 2 1 true"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"effect @a[score_Thirst_min=20100,score_Thirst=21300] minecraft:slowness 2 0 true"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"tellraw @a[score_Thirst_min=20000,score_Thirst=20000] {\\\"text\\\":\\\"You are feeling parched. Drink some water to quench your thirst.\\\",\\\"bold\\\":true,\\\"color\\\":\\\"dark_aqua\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players add @a Thirst 1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a[score_Drink_min=1] Drink 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"scoreboard players set @a[score_Drink_min=1] Thirst 0"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement