372: Simple thirst mechanism. [Minecraft Map Making]

Subscribers:
3,670
Published on ● Video Link: https://www.youtube.com/watch?v=pl-z21HtqSg



Minecraft
Game:
Minecraft (2011)
Duration: 17:13
195 views
14


Ep372: Adding a simple thirst mechanism, making it worse in the desert. If you run out of water you get bad effects.

00:00 Intro
01:30 Setup
02:25 Controller - main
10:30 Controller - actionbar

Version: 1.21

Requested by: Alexandru Chiriac

Misode Generators: https://misode.github.io/

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:    / coppitj  

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.

Commands used:

Setup:
IUN: scoreboard objectives add used_potion used:potion
CUA: scoreboard objectives add value dummy

Controller - Main:
RUA: execute as @a[scores={used_potion=1..}] run scoreboard players add @s value 500
CUA: scoreboard players reset @a[scores={used_potion=1..}] used_potion
CUA: execute as @a[scores={value=1..}] at @s unless block ~ ~ ~ water run scoreboard players remove @s value 1
CUA: execute as @a[scores={value=1..}] at @s unless block ~ ~ ~ water if predicate {"condition":"minecraft:entity_properties","entity":"this","predicate":{"location":{"biomes":"minecraft:desert"}}} run scoreboard players remove @s value 1
CUA: execute as @a[scores={value=0}] run effect give @s hunger 2 0 true
CUA: execute as @a[scores={value=0}] run effect give @s weakness 2 0 true

Controller Action Bar:
RUA: execute as @a[scores={value=..199}] run title @s actionbar [{"text":"Water: ", "color":"aqua"},{"text":"҉҉҉҉҉", "color":"red"}]
CUA: execute as @a[scores={value=200..399}] run title @s actionbar [{"text":"Water: ", "color":"aqua"},{"text":"۞", "color":"aqua"},{"text":"҉҉҉҉", "color":"red"}]
CUA: execute as @a[scores={value=400..599}] run title @s actionbar [{"text":"Water: ", "color":"aqua"},{"text":"۞۞", "color":"aqua"},{"text":"҉҉҉", "color":"red"}]
CUA: execute as @a[scores={value=600..799}] run title @s actionbar [{"text":"Water: ", "color":"aqua"},{"text":"۞۞۞", "color":"aqua"},{"text":"҉҉", "color":"red"}]
CUA: execute as @a[scores={value=800..999}] run title @s actionbar [{"text":"Water: ", "color":"aqua"},{"text":"۞۞۞۞", "color":"aqua"},{"text":"҉", "color":"red"}]
CUA: execute as @a[scores={value=1000..}] run title @s actionbar [{"text":"Water: ", "color":"aqua"},{"text":"۞۞۞۞۞", "color":"aqua"}]

Predicate - In Nether
{"condition":"minecraft:entity_properties","entity":"this","predicate":{"location":{"dimension":"minecraft:the_nether"}}}







Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 181,967 views spread across 862 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.