Fabric 1.21.9-1.21.10 initial support
To get the build working, I had to make some code changes. Here’s how I structured the commits:
- First commit: a raw copy of the 1.21.6–1.21.8 versions.
- Second commit https://github.com/webbukkit/dynmap/commit/adc68adc7609733be0fbafe0ce23e040291112fb contains the edits required to make the build succeed. Some of these changes may be incorrect or cause errors, so please review this commit carefully. ⚠️
The build works and the required legacy textures display correctly, ~~but the new copper textures are not supported since DynmapCore was not updated~~.
Summary
This update adds missing texture definitions so several blocks can now render properly on the map.
Changes
Added missing textures for the following blocks:
- Copper bars, lightning rod, chain, lantern, and torch (including all exposed, oxidized, and waxed variants)
- All wooden shelf variants
- Cactus flower, wildflowers, firefly bush
- Leaf litter, resin clump
- Short and tall dry grass
Known Issues
-
Copper chests and copper golem statues are still not rendering.
- Their textures are stored in the
/entityfolder, which DynmapBlockScan doesn’t currently handle. - Additionally, copper chests appear to use a different texture structure than classic or ender chests.
- Their textures are stored in the
Great work! Build it successfully this morning and tried it on my server. Seems to work great so far except for the copper chests that you already mentioned. But its good enough to play on 1.21.9 for now :). Thanks!
As requested on Discord, here’s the compiled JAR for this update.
Supports Fabric 1.21.9 and ~~1.21.10-rc1~~ 1.21.10.
Summary
Adds support for 1.21.10, grouped under a single subproject that includes both 1.21.9 and 1.21.10.
Copper Chests Support:
Copper chests are now supported!
I manually created a copper_{tier}_double.png texture for each copper tier. (https://github.com/webbukkit/dynmap/pull/4240/commits/45f5b72efa20d0109890d68fe24fdeb2f5d4eb25)
I also fixed simple chests (all types). It seems the top texture wasn’t the correct one, as shown here (I tested in 1.21.6 and saw the same issue).
To fix this, I edited all normal.png chest textures accordingly. (https://github.com/webbukkit/dynmap/pull/4240/commits/68fe8fdb8f5ee4e7b9a6e943c40e99f12dc0d7c9)
Notes:
It seems that normal_double.png is no longer used in newer Minecraft versions, possibly due to changes in how double chests are rendered.
I checked the latest few versions and found no trace of it.
To work around this, I manually recreated the copper double chest textures based on the old double chest model.
Fabric Permissions API: (https://github.com/webbukkit/dynmap/pull/4240/commits/e7e85888dc271afbe5ee1bfbff238980d63ddab6)
As mentioned on Discord, the dependency me.lucko:fabric-permissions-api:0.1-SNAPSHOT no longer works.
I downloaded the JAR from the official lucko/fabric-permissions-api repository and verified it with the following SHA-256 checksum:
eafed55e6d2ee49c7be89bdc7378433521f65c3ca3100d43aaf50cfecd48ec77
The JAR has been placed in /libs/external for now.
I also updated the Fabric subprojects that depend on it to reference this local path, ensuring builds for other Fabric modules work correctly.
The only new 'block' not yet supported is copper statue.
Awesome. I actually tried to go down the path of creating new _double.png textures to give to you, but then gave up because the pixels weren't lining up nicely. Then I tried checking what it would take to fix the single chest textures on the java side of things, but I couldn't figure out how the java side is pulling portions of the texture data to display. Definitely something I'm missing in my understanding of the model code.
Your workaround work just fine though. Single chests have been broken and bothering me for a while.
For the fabric api, 0.1-SNAPSHOT must be really old, the latest version is 0.5.0 and should be in maven central. Maybe just changing the version to that would solve the issue?
Fabric Permissions API: (https://github.com/webbukkit/dynmap/pull/4240/commits/4fd96ec07c0759d6fc7765a4eb0a0811a9f4a005)
For the fabric api, 0.1-SNAPSHOT must be really old, the latest version is 0.5.0 and should be in maven central. Maybe just changing the version to that would solve the issue?
Yes, correct. I hadn’t tried initially. I tried 0.5.0, which works for 1.21.10, but causes build issues for other Fabric projects.
Using 0.4.0 for those versions seems to work fine.
Loom Version: (https://github.com/webbukkit/dynmap/pull/4240/commits/2b7e799bcd7d386638ac127b89ba5089d87ecf2a)
When compiling all Fabric versions, I encountered build errors in most of them.
Updating to the latest Loom snapshot resolved the issue, and I was able to compile all Fabric versions successfully.