151: Storing and displaying death coordinates. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 13:35
415 views
24


Ep151: Storing and displaying death coordinates.

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: YouTube formatting may make some of these wrong. :)

Create objectives:
IUN: scoreboard objectives add playerDeathX dummy
CUA: scoreboard objectives add playerDeathY dummy
CUA: scoreboard objectives add playerDeathZ dummy

Store coordinates:
IUN: execute store result score @p playerDeathX run data get entity @p LastDeathLocation.pos[0]
CUA: execute store result score @p playerDeathY run data get entity @p LastDeathLocation.pos[1]
CUA: execute store result score @p playerDeathZ run data get entity @p LastDeathLocation.pos[2]

Display on a sign:
IUN: data merge block 32 57 10 {Text2:'[{"text":"X: "},{"score":{"name":"@p","objective":"playerDeathX"}}]',Text3:'[{"text":"Y: "},{"score":{"name":"@p","objective":"playerDeathY"}}]',Text4:'[{"text":"Z: "},{"score":{"name":"@p","objective":"playerDeathZ"}}]'}

Display in chat:
IUN: tellraw @p [{"text":"Death coordinates: ","color":"red"},{"text":"X:","color":"gray"},{"score":{"name":"@p","objective":"playerDeathX"},"color":"green"},{"text":" Y:","color":"gray"},{"score":{"name":"@p","objective":"playerDeathY"},"color":"green"},{"text":" Z:","color":"gray"},{"score":{"name":"@p","objective":"playerDeathZ"},"color":"green"}]







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.