Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNBT codec deserialization got stricter in 25w04a #1741

Open
tryashtar opened this issue Feb 1, 2025 · 0 comments
Open

SNBT codec deserialization got stricter in 25w04a #1741

tryashtar opened this issue Feb 1, 2025 · 0 comments

Comments

@tryashtar
Copy link

As of 25w04a, commands accepting SNBT arguments for codec things (inline loot tables, item modifiers, item components, text components) became more strict. Booleans now must be written as true or false, and arrays no longer accept similarly-typed lists.

MC-279971 and MC-279844 confirm these changes are intended, though I don't know the extent of all affected fields.

give @s compass[lodestone_tracker={target:{dimension:"overworld", pos:[1, 1, 1]}, tracked:1b}]

is valid in 1.21.4, but 1.21.5+ will require

give @s compass[lodestone_tracker={target:{dimension:"overworld", pos:[I; 1, 1, 1]}, tracked:true}]

I assume this is already known and the extension just isn't up-to-date yet, but this was nagging on my mind and I didn't want to wait to see so I figured I'd just post it.

@misode misode added the 🐛 bug Something isn't working label Feb 6, 2025
@SPGoding SPGoding removed the 🐛 bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants