Chunk Render error after changing CauldronBehavior interface by mixin #1937
-
Hi, all Recently I added a custom bucket in Minecraft 1.18.1. Then I tried to change the CauldronBehavior interface in order to add new interaction between the custom bucket and empty or water cauldron. The Mixin file is shown below:
It works well after modification. However, there is something wrong. After the modification, the chunks containing blocks in my mod cannot be loaded correctly, and almost all items in my mod's itemGroup disappear (Seems like something is wrong with the item register). Like this: With error showed:
Does anyone know what's happening? Is the formatting of the mixin incorrect? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
The palette in the chunk manager is responsible for finding the block states on the client.
So is that palette error caused by your block(s) or the changed cauldron state? Sounds like your Cauldron mixin is causing a problem earlier than the error you show? |
Beta Was this translation helpful? Give feedback.
-
By the way, I am wondering why you need the mixin? The CauldronBehaviour is an interface. Those maps you are modifying are public static fields. |
Beta Was this translation helpful? Give feedback.
-
In fact, that might be your problem? |
Beta Was this translation helpful? Give feedback.
-
You can just modify the maps in your mod initialiser. Something like (untested code):
|
Beta Was this translation helpful? Give feedback.
You can just modify the maps in your mod initialiser.
The maps are public static so you can call their methods directly.
Something like (untested code):