419: Dynamic waypoint book with indexed location information. [Minecraft Map Making]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=WQA-nAMdy_o



Minecraft
Game:
Minecraft (2011)
Duration: 0:00
199 views
16


Membership:
Ep419: Updating the waypoint book to work with the item components.

00:00 Intro
02:40 Setup
04:10 Create master storage data
18:05 Controller - update book
34:25 Force update
36:05 Location tags
38:30 Reset
42:30 Controller - trigger

Version: 1.21

Request by: wxrldondrxgs

Old Waypoint book:    • 158-4: Waypoint system using triggers...  
Old indexed journal:    • 303: Updating journal with index and ...  

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

Check out my collabs on Coppit's channel:

Join the CoppitCraft server that 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.

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 update_journal dummy
CUA: scoreboard objectives add teleport trigger
CUA: scoreboard players enable @a teleport

Create master storage:
IUN: data merge storage journal:data {master_index:['{"text":" "}', '{"text":"Discovered Locations: \\n"}', '{"text":"Cave of Doom", "color":"dark_green", "clickEvent":{"action":"change_page", "value":"2"}}', '{"text":"Spooky Ruins", "color":"dark_green", "clickEvent":{"action":"change_page", "value":"3"}}']}
CUA: data merge storage journal:data {master_page_one:['{"text":" "}', '{"text":"Cave of Doom:"}', '{"text":"- Index", "color":"dark_green", "clickEvent":{"action":"change_page", "value":"1"}}', '{"text":"- Teleport", "color":"dark_green", "clickEvent":{"action":"run_command", "value":"/trigger teleport set 1"}}', '{"text":"\\n"}', '{"text":"Some information about the Cave of Doom."}']}
CUA: data merge storage journal:data {master_page_two:['{"text":" "}', '{"text":"Spooky Ruins:"}', '{"text":"- Index", "color":"dark_green", "clickEvent":{"action":"change_page", "value":"1"}}', '{"text":"- Teleport", "color":"dark_green", "clickEvent":{"action":"run_command", "value":"/trigger teleport set 2"}}', '{"text":"\\n"}', '{"text":"Some information about the Spooky Ruins."}']}

Controller update book:
RUA: clear @a[scores={update_journal=1}] written_book[custom_data={journal:true}]

CCA: data merge storage journal:data {current_index:['{"text":" "}', '{"text":"Locations:\\n"}', '{"text":"-Locked", "color":"gray"}','{"text":"-Locked", "color":"gray"}']}
CCA: data merge storage journal:data {current_page_one:['{"text":" "}', '{"text":"Undiscovered:\\n", "color":"gray"}', '{"text":"This will unlock when you have visited this location.", "color":"gray"}']}
CCA: data merge storage journal:data {current_page_two:['{"text":" "}', '{"text":"Undiscovered:\\n", "color":"gray"}', '{"text":"This will unlock when you have visited this location.", "color":"gray"}']}

CUA: execute as @a[scores={update_journal=1},tag=location_one] run data modify storage journal:data current_index[2] set from storage journal:data master_index[2]
CUA: execute as @a[scores={update_journal=1},tag=location_one] run data modify storage journal:data current_page_one set from storage journal:data master_page_one
CUA: execute as @a[scores={update_journal=1},tag=location_two] run data modify storage journal:data current_index[3] set from storage journal:data master_index[3]
CUA: execute as @a[scores={update_journal=1},tag=location_two] run data modify storage journal:data current_page_two set from storage journal:data master_page_two

CUA: give @a[scores={update_journal=1}] written_book[custom_data={journal:true},written_book_content={title:"Journal",author:"Bob the Traveller",pages:['[{"storage":"journal:data","nbt":"current_index[]","separator":"\\n","interpret":true}]', '[{"storage":"journal:data","nbt":"current_page_one[]","separator":"\\n","interpret":true}]', '[{"storage":"journal:data","nbt":"current_page_two[]","separator":"\\n","interpret":true}]']}]
CUA: tellraw @a[scores={update_journal=1}] {"text":"Your Journal has been updated!","color":"red"}
CUA: scoreboard players reset @a update_journal

Force book update:
IUN: scoreboard players set @p update_journal 1

Controller Trigger:
RUA: tp @a[scores={teleport=1}, tag=location_one] 10118 56 10016
CUA: tp @a[scores={teleport=2}, tag=location_two] 10118 56 10018
CUA: scoreboard players reset @a teleport
CUA: scoreboard players enable @a teleport

Visit Location:
IUN: execute as @p store success score @s update_journal run tag @s add location_one
IUN: execute as @p store success score @s update_journal run tag @s add location_two

Reset:
IUN: tag @a remove location_one
CUA: tag @a remove location_two
CUA: scoreboard players set @a update_journal 1







Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 181,722 views spread across 860 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.