90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Changelog
This release doesn't obviously change anything about how these blocks behave, but the code has been drastically improved in almost every way.
- The blocks now copy the behaviours of the vanilla (non-hollow) counterparts, reducing the amount of custom logic. This will make it easier to add hollow counterparts to logs from other mods or vanilla updates in the future. Consequently, hollow logs now share the mining speed of their non-hollow counterparts instead of being insta-mineable.
- The collision, outline and raycast geometry logic has been totally rewritten which is now far simpler and faster to run. Instead of, for each possible orientation of the block, stitching 4 sides together from a list of possible 6, it calculates the dimensions of the hole in each orientation and subtracts them from the
fullCube()
shape. - The biomes the hollow log decorations can place in are now hardcoded. This sounds like a bad thing, but it totally removes the need for a built-in datapack and should now be compatible with datapacks that modify biome .json files.
- Improved general code readability, by renaming certain methods and classes, adding comments and indents, and separating if expressions from their returns.
Enjoy! :D
NOTE FROM THE FUTURE
Due to my own negligence, this release actually supports 1.20.2+, not 1.20.1. I don't have the ability to edit older versions of my mods. Apologies for the inconvenience; this won't happen again!