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

Minecraft 1.20.6 Update #55

Merged
merged 24 commits into from
Jul 28, 2024
Merged

Minecraft 1.20.6 Update #55

merged 24 commits into from
Jul 28, 2024

Conversation

minoneer
Copy link
Collaborator

Update for Minecraft/Spigot/Paper 1.20.6

Vanilla-Minecraft changes how items are stored and specified in 1.20.5. Since items are a central part of uSkyBlock, it requires extensive changes.

  • All item parsing has been changed from NBT-Tags to Item Components
  • The format in which items are specified in config files has changed. It now uses the same format as the vanilla /give command, which
  • Default challenges.yml, config.yml, and other configs have been updated to the new format
  • All existing configs, including ones with customized challenges and items will be automatically converted to the new format. Exception: item meta will not be automatically converted to tags, as there is no stable way to do so. It will require manual upgrade by the use. Even the paper online tool does not properly convert to valid item tags.
  • Lots of code cleanup, including the removal of old numeric item ID stuff
  • The new system relies exclusively on Bukkit API and therefore no longer needs reflection to access internal implementations. This should make future updates much simpler.

This PR depends on #54 - once that is merged, the diff should become a lot cleaner and more readable.

@minoneer minoneer marked this pull request as draft June 14, 2024 14:24
@minoneer
Copy link
Collaborator Author

minoneer commented Jun 14, 2024

@Muspah I have marked this as a draft for now - it would be great to get a second pair of eyes on this, as the changes are involved.

I tested it on our local setup, and everything looks good, but testing on another independent setup would be good.

Diff of the actual update: minoneer/uSkyBlock@a1742af...minoneer:uSkyBlock:minecraft-1.20.6

@minoneer minoneer marked this pull request as ready for review June 19, 2024 11:59
minoneer added 24 commits June 27, 2024 10:35
Includes code cleanup of left-over pre-1.13 stuff
- move parsing code to factory & item utils where all the other parsing occurs
- decouple requirement amount from stack size. We should not rely on ItemStack being able to have larger amounts than maxStackSize
- change parsing to use item components instead of nbt tags
- including tests
- cleanup code
- The converter converts all challenges to the new item format.
- Item meta from the default challenges configuration are automatically converted.
- Other item meta is moved to the comments and will have to be converted manually.
- The explanation is moved to the config header, instead of a comment on the version number.
These were used previously as defaults and may not have been updated.
@minoneer
Copy link
Collaborator Author

Rebased onto bukkit-utils merge in master

@Muspah Muspah merged commit ec9887b into uskyblock:master Jul 28, 2024
1 check passed
@minoneer minoneer mentioned this pull request Dec 22, 2024
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

Successfully merging this pull request may close these issues.

2 participants