Many QoL improvements & Resourcepack features

- Support Sodium 0.6+
- Allow resourcepacks to force culling and hide fully-encircled leaf blocks
- Force leaf culling when the smart leaves pack is enabled
- Reload world when the config changes
- Only apply Sodium mixins when Sodium is actually installed (Removes log spam)
This commit is contained in:
Martin Prokoph
2024-12-24 14:01:05 +01:00
parent 1ad05aa6bf
commit b8d2e6b4ab
22 changed files with 343 additions and 46 deletions

View File

@@ -16,6 +16,9 @@ logoFile = "icon.png"
[[mixins]]
config = "cullleaves.mixins.json"
[[mixins]]
config = "cullleaves-neoforge.mixins.json"
[[dependencies.cullleaves]]
modId = "neoforge"
required = true
@@ -26,7 +29,7 @@ side = "CLIENT"
[[dependencies.cullleaves]]
modId = "minecraft"
required = true
versionRange = "[1.20,)"
versionRange = "[1.21,)"
ordering = "NONE"
side = "CLIENT"

View File

@@ -0,0 +1,14 @@
{
"required": true,
"package": "eu.midnightdust.cullleaves.neoforge.mixin",
"plugin": "eu.midnightdust.cullleaves.CullLeavesMixinPlugin",
"compatibilityLevel": "JAVA_17",
"minVersion": "0.8",
"client": [
"sodium.MixinBlockRenderer",
"sodium.MixinSodiumGameOptionPages"
],
"injectors": {
"defaultRequire": 1
}
}