When summoning a shulker it has the wrong colour.
Steps to reproduce:
1. Place a coloured shulker box
2. Summon a shulker (/summon Shulker)
Linked issues
is duplicated by 16
Attachments
Comments 10
It does: the default number in a tag is 0. This means that the default shulker is white, the default mob drowns in water immediately (MC-78527) and default count of items (in Item entity) is 0 => you can't pickup summoned item pre-16w32b and you can't even summon it in 16w32b (and later) without giving it at least Count:1 (e.g. /summon Item ~ ~ ~ {Item:{id:minecraft:stone
}})
That isn't strictly true. Stuff like, say, Size
for slimes or Profession
for villagers is randomized when no other NBT is given, and Pumpkin
, for example, for snowmen defaults to one unless specified otherwise.
It just seems that zero happens to be the default for this tag.
I think I understand the point that Mar Cus is trying to get across and if it were to be executed as a fix, it would fix the issue.
I think Mar Cus was suggesting that in a future update perhaps to have the console command work in terms of spawning a Purple Shulker without adding the color NBT value tag, switch/swap the color values associated with the color NBT tag values 0 (White) and 10 (Purple), and then switch the color tag for all naturally spawning shulkers from 10 to 0, which would convert the Shulkers back to purple after the ingame code change.
This way, when a command like so would be used: /summon shulker ~ ~1 ~ and the color NBT tag would not be defined, Purple, not White would be the default color regardless and the console command spawned Shulker would spawn in as purple, because then Purple would be the default value for 0 in the color NBT tag, not white. Seems like a simple fix.
I do see the post dates, however, this idea would fix this bug.
This was fixed in 1.17 (MC-234046).
You should add a Color tag: