SpyglassMC / Spyglass

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

Slot validation #1455

Open tryashtar opened 2 weeks ago

tryashtar commented 2 weeks ago
item replace entity @p horse.14 with stone

This command is invalid because players don't have a horse.14 slot (it's slot 514). Spyglass currently doesn't warn for this, but it could in cases where information about the selector's entity type is known.

It's questionable whether slots that only differ semantically should produce an warning (like using contents instead of hotbar.0 for a player). I would vote yes

MulverineX commented 1 week ago

Related #1457