1
I would like it so that it could summon an entity (for example, an ArmorStand) that will be named based on a scoreboard score. I made a dummy scoreboard called "Kills". I would like it so that an invisible armor stand will show the score by displaying its name, showing the number of kills you have. Is this possible to do? Thanks in advance. I really love the advices you guys gave me in the past
Create an account or sign in to comment.
3
1
Oh that's sad... thanks for the answers though
1
Alternatively, if there is a fixed amount of possible scores, have a testfor command block for each one and summon a named armour stand from those.
1
The short answer: no.
You can't summon an entity and name it based on a scoreboard, because the tag "CustomName:" only allow strings.
However, depending on what you want the name of the entity for, there are other options:
1.If you want to name the entity, so that you can use its name to create test, there would be a way to do this, with the tell raw command
2.If you want to name the entity, just to name it(?) you could set up a whole bunch of commandBlocks and spawn entities, with different names depending on the objectives value.
(Sorry if this is a bit messy, it 2am, right now)
You can't summon an entity and name it based on a scoreboard, because the tag "CustomName:" only allow strings.
However, depending on what you want the name of the entity for, there are other options:
1.If you want to name the entity, so that you can use its name to create test, there would be a way to do this, with the tell raw command
/tellraw @p ["",{"score":{"name":"selector","objective":"objective"},"insertion":"Text"}]
2.If you want to name the entity, just to name it(?) you could set up a whole bunch of commandBlocks and spawn entities, with different names depending on the objectives value.
(Sorry if this is a bit messy, it 2am, right now)