SpyglassMC / Spyglass

Development tools for vanilla Minecraft: Java Edition data pack developers.
https://spyglassmc.com
MIT License
273 stars 29 forks source link

Improve numerical enum mcdoc errors #1253

Open misode opened 3 weeks ago

misode commented 3 weeks ago

When a number is out of range of an enum type, it should just say "expected a numerical value between 0 and 15" instead of listing all the options image

NeunEinser commented 3 weeks ago

Where is this definition? What's the advantage of using an enum here instead of just defining an int range in vanilla mcdoc?

misode commented 3 weeks ago

It's the shulker color, it needs to be an enum to describe each possible value image