Рет қаралды 166
Today we add Dehydration to Minecraft! Now you gotta drink some water to survive! This uses a ton of scoreboards and this is really good to get good with scoreboard. This will cure your fear with scoreboards!
Sorry if the video feels weird, I should have went into survival and see how long I survived with this lol
Subscribe for more weird command block creations and let me know what other stuff you want me to make next!
I only added some of the command blocks and that a lot of them are copy and paste with a different scoreboard. Also during the video the start command actually does something but I was being dumb. So it should be a repeat and that if a new player joins the server then it will give them the water level score if they don't already have. I did not notice that unless in the command block lol.
The Command:
scoreboard: /scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm
(there are more but they are all similar to this one)
start: execute as @a at @s unless score @s waterlevel matches -999..999 run scoreboard players set @s waterlevel 20
death:
repeat: execute as @a at @s if score @s death matches 1.. run scoreboard players set @s waterlevel 20
chain: execute as @a at @s if score @s death matches 1.. run scoreboard players reset @s death
title:
repeat: execute as @a at @s if score @s waterlevel matches 13..20 run title @s actionbar ["",{"text":"Water Level: ","color":"#007AFF"},{"score":{"name":"*","objective":"waterlevel"},"color":"#007AFF"}]
chain: execute as @a at @s if score @s waterlevel matches 6..12 run title @s actionbar ["",{"text":"Water Level: ","color":"#F0A21D"},{"score":{"name":"*","objective":"waterlevel"},"color":"#F0A21D"}]
chain: execute as @a at @s if score @s waterlevel matches ..5 run title @s actionbar ["",{"text":"Water Level: ","color":"#FF0000"},{"score":{"name":"*","objective":"waterlevel"},"color":"#FF0000"}]
chain: execute as @a at @s if score @s waterlevel matches 21.. run title @s actionbar ["",{"text":"Water Level: ","color":"#FF0000"},{"score":{"name":"*","objective":"waterlevel"},"color":"#FF0000"}]
water level:
repeat: execute as @a at @s run scoreboard players add @s timer 1
chain: execute as @a at @s if score @s walk matches 100.. run scoreboard players add @s timer 1
chain: execute as @a at @s if score @s walk matches 100.. run scoreboard players reset @s walk
(copy and paste and change the scoreboard)
chain: execute as @a at @s if score @s timer matches 1200.. run scoreboard players remove @s waterlevel 1
chain: execute as @a at @s if score @s timer matches 1200.. run scoreboard players reset @s timer
drink water:
repeat: execute as @a at @s if score @s drinkwater matches 1.. run scoreboard players add @s waterlevel 1
chain: execute as @a at @s if score @s drinkwater matches 1.. run scoreboard players reset @s drinkwater
(eat food and damage is the exact same but change scoreboard and the command at the end of repeat)
Become A Member - / @vivtorsing
My Discord - / discord
Thanks for watching