-
Notifications
You must be signed in to change notification settings - Fork 40
1.21 Port Bug Fix #220
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
base: 1.21
Are you sure you want to change the base?
1.21 Port Bug Fix #220
Conversation
…d override useWithoutItem
…display properties
…ponents for item data handling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR ports the Citadel mod to Minecraft 1.21, updating the codebase to use the new DataComponents system introduced in 1.21 and updating various APIs to match the new Minecraft version.
Key changes:
- Migration from NBT-based item data storage to the DataComponents system
- Updated block interaction API to use
useWithoutItemmethod - Changed biome filtering from deprecated BIOME_DICT to BIOME_TAG system
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/resources/data/citadel/neoforge/biome_modifier/mob_spawn_modifier.json | Adds new biome modifier configuration for mob spawn probability |
| src/main/resources/citadel.mixins.json | Registers new ItemBlockRenderTypesMixin for fluid render type handling |
| src/main/java/com/github/alexthe666/citadel/server/block/CitadelLecternBlock.java | Updates to use new useWithoutItem method signature from Minecraft 1.21 API |
| src/main/java/com/github/alexthe666/citadel/config/biome/CitadelBiomeDefinitions.java | Migrates from deprecated BIOME_DICT to BIOME_TAG system with updated tag names |
| src/main/java/com/github/alexthe666/citadel/client/gui/GuiBasicBook.java | Converts item tag handling from NBT to DataComponents system |
| src/main/java/com/github/alexthe666/citadel/client/CitadelItemstackRenderer.java | Migrates all item rendering logic from NBT to DataComponents system and updates vertex format usage |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/main/java/com/github/alexthe666/citadel/server/block/CitadelLecternBlock.java
Show resolved
Hide resolved
src/main/java/com/github/alexthe666/citadel/client/CitadelItemstackRenderer.java
Outdated
Show resolved
Hide resolved
src/main/java/com/github/alexthe666/citadel/client/CitadelItemstackRenderer.java
Outdated
Show resolved
Hide resolved
…ting in item rendering
|
has conflicts |
…em rendering and update JSON structure for item renders
|
Fixed. Since the newly merged DataComponent approach from #218 is more modern and we haven't released yet, we could fully align with this direction. But this implies that Alex's Mobs 1.21 will need updates. I will investigated the impact, and a separate PR will be submitted to address those fixes |
Bug fix when fix AlexMobs
AlexModGuy/AlexsMobs#2317