How to spawn items from command blocks with special names?
-
I've tried so many things to get this to work so: I'm trying to make this Minecraft map where one of the objectives is to collect a bunch of a renamed item, specifically raw gold, I want to rename them Starpieces.
Now I know you can summon non-named items just fine, I have a tree that drops bread when you press the button for it. I'm sure there is a collection of NBT tags that can rename the raw gold to Starpieces (and the bread to something else) but I can't for the life of me figure out how to get it to work.
Again, I'm trying to summon 1 raw gold, at specific coordinates that's been renamed to Starpiece.
-
CustomName
tag is shown in death messages and villager trading interface. By renaming raw gold on anvil and viewing its entitydata, I've noticedtag
NBT-tag inside theItem
.Exactly this one appears at the player's inventory, therefore the final command is:
/summon item ~ ~ ~ {Item: {id: "minecraft:raw_gold", Count: 1, tag: {display: {Name: '{"text":"Starpiece"}'}}}}