137: Using a score for an entities name. [Minecraft Map Making]
Ep137: Display a scoreboard value as an entities name and on a sign.
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 the entity:
IUN: summon item -41 57 262 {Item:{id:"minecraft:stone_button",Count:1b,tag:{myButton:1b}},PickupDelay:32767,NoGravity:1b,Age:-32768,CustomNameVisible:1b,CustomName:'{"text":"Hi"}'}
Kill the entity:
IUN: kill @e[type=item,sort=nearest,limit=1,nbt={Item:{tag:{myButton:1b}}}]
Controller:
RUA: scoreboard players add #scoreHolder clock 1
CUA: execute if score #scoreHolder clock matches 101.. run scoreboard players set #scoreHolder clock 0
CUA: data merge block -43 57 265 {Text1:'{"score":{"name":"#scoreHolder","objective":"clock"}}'}
CUA: data modify entity @e[nbt={Item:{tag:{myButton:1b}}},limit=1] CustomName set from block -43 57 265 Text1
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 182,939 views spread across 869 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.