158-4: Waypoint system using triggers and dynamically updating book. [Minecraft Map Making]

Subscribers:
3,900
Published on ● Video Link: https://www.youtube.com/watch?v=5bLg9GtQ_SQ



Minecraft
Game:
Minecraft (2011)
Duration: 32:50
175 views
21


Ep158-4: Waypoints in a book that dynamically update to show if they are available, using trigger commands so all players can use it. This was only going to be a three part mini series, but this design by GalSergey is too good not to show.

Check out the other three test versions:
Typing Book: https://youtu.be/k_wkUL_nrAg
Trigger: https://youtu.be/eH7OFe1_pzY
Command Book: https://youtu.be/fF0_94rXaYg

Java Version: 1.19

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

Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ

Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu

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.

Commands used:

Create storage for all destinations:
IUN: data merge storage waypoint:destinations {master:['{"text":" "}','{"text":"Shop","clickEvent":{"action":"run_command","value":"/trigger teleWaypoint set 1"},"color":"dark_green"}','{"text":"Tower","clickEvent":{"action":"run_command","value":"/trigger teleWaypoint set 2"},"color":"dark_green"}','{"text":"Mine","clickEvent":{"action":"run_command","value":"/trigger teleWaypoint set 3"},"color":"dark_green"}' ]}

Create objectives:
IUN: scoreboard objectives add teleWaypoint trigger
CUA: scoreboard players enable @a teleWaypoint
CUA: scoreboard objectives add updateBook dummy

Tag the player at a waypoint:
IUN: execute as @p[distance=..8] store success score @s updateBook run tag @s add Shop
IUN: execute as @p[distance=..8] store success score @s updateBook run tag @s add Tower
IUN: execute as @p[distance=..8] store success score @s updateBook run tag @s add Mine

Book update controller:
RUA: clear @a[scores={updateBook=1}] written_book{waypointBook:true}
CCA: data merge storage waypoint:destinations {current:['{"text":" "}','{"text":"Shop","color":"gray"}','{"text":"Tower","color":"gray"}}','{"text":"Mine","color":"gray"}}']}
CUA: execute as @a[scores={updateBook=1},tag=Shop] run data modify storage waypoint:destinations current[1] set from storage waypoint:destinations master[1]
CUA: execute as @a[scores={updateBook=1},tag=Tower] run data modify storage waypoint:destinations current[2] set from storage waypoint:destinations master[2]
CUA: execute as @a[scores={updateBook=1},tag=Mine] run data modify storage waypoint:destinations current[3] set from storage waypoint:destinations master[3]
CUA: give @a[scores={updateBook=1}] written_book{waypointBook:true,title:"Waypoints",author:"Bob the Traveller",pages:['["Waypoints: \\n\\n",{"storage":"waypoint:destinations","nbt":"current[]","separator":"\\n","interpret":true}]']}
CUA: tellraw @a[scores={updateBook=1}] {"text":"Your Waypoint Book has been updated!","color":"red"}
CUA: scoreboard players reset @a update

Trigger controller:
RUA: tp @a[scores={teleWaypoint=1}] 23 56 265
CUA: tp @a[scores={teleWaypoint=2}] 23 56 267
CUA: tp @a[scores={teleWaypoint=3}] 23 56 269
CUA: scoreboard players reset @a teleWaypoint
CUA: scoreboard players enable @a teleWaypoint

Reset player:
IUN: tag @a remove Shop
CUA: tag @a remove Mine
CUA: tag @a remove Tower
CUA: scoreboard players set @a updateBook 1







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 182,428 views spread across 865 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.