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: [ Ссылка ]
Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
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.
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
![](https://i.ytimg.com/vi/_CLMulLFApc/mqdefault.jpg)