I'm trying to make a resource pack, that makes multiple variants of ender dragon. Mainly different tints of ender dragon. Unfortunately it doesn't seem to work.
pack.mcmeta
assets
└───minecraft
├───optifine
│ └───random
│ └───entity
│ └───ender_dragon
│ dragon10.png
│ dragon11.png
│ dragon12.png
│ dragon13.png
│ dragon14.png
│ dragon15.png
│ dragon16.png
│ dragon17.png
│ dragon2.png
│ dragon3.png
│ dragon4.png
│ dragon5.png
│ dragon6.png
│ dragon7.png
│ dragon8.png
│ dragon9.png
│ ender_dragon.properties
└───textures
└───entity
└───enderdragon
dragon.png
ender_dragon.properties file:
textures.1=2
nbt.CustomName={\"text\":\"White\"}
textures.2=3
nbt.CustomName={\"text\":\"Orange\"}
textures.3=4
nbt.CustomName={\"text\":\"Magenta\"}
textures.4=5
nbt.CustomName={\"text\":\"LightBlue\"}
textures.5=6
nbt.CustomName={\"text\":\"Yellow\"}
textures.6=7
nbt.CustomName={\"text\":\"Lime\"}
textures.7=8
nbt.CustomName={\"text\":\"Pink\"}
textures.8=9
nbt.CustomName={\"text\":\"Gray\"}
textures.9=10
nbt.CustomName={\"text\":\"LightGray\"}
textures.10=11
nbt.CustomName={\"text\":\"Cyan\"}
textures.11=12
nbt.CustomName={\"text\":\"Purple\"}
textures.12=13
nbt.CustomName={\"text\":\"Blue\"}
textures.13=14
nbt.CustomName={\"text\":\"Brown\"}
textures.14=15
nbt.CustomName={\"text\":\"Green\"}
textures.15=16
nbt.CustomName={\"text\":\"Red\"}
textures.16=17
nbt.CustomName={\"text\":\"Black\"}
And then I try to summon the Ender Dragon:
/summon ender_dragon ~ ~1 ~ {CustomName:'{"text":"Yellow"}'}