TransWikia.com

I want to display scoreboard on a sign in minecraft 1.13 or above

Arqade Asked on May 19, 2021

I’m using this command to get a sign:

/give @p minecraft:oak_sign{BlockEntityTag:{
Text1:'{"text":"","clickEvent":{"action":"run_command","value":"setblock 43 17 13 minecraft:redstone_block"}}',
Text2:'{"text":"Buy Chicken","bold":true}',
Text3:'["0000000000",{"text":"u2588"},{"text":"u2588","color":"gray"}]'},display:{Name:'{"text":"Custom Sign"}'}
}

but I don’t know how to make custom value with scoreboard in place of zeros on the third line of the sign.

Can someone help?

One Answer

On this page: https://minecraftjson.com, we can create a command with scoreboard easily with /data merge block. This is an example:

/data merge block [x] [y] [z] {Text1:"{"score":{"name":"PLAYER_OR_ENTITY","objective":"SCOREBOARD_NAME"},"underlined":true,"color":"dark_red"}"} 

All we need to do then is to place a sign on correct [x] [y] [z]. The command need to be in "repeat" and "always active" command block.

Answered by Kornel Łaba on May 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP