9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 11:29:12 +00:00

Movable Budding Amethyst bind carpet rule (#561)

This commit is contained in:
violetc
2025-06-30 22:52:58 +08:00
parent df8397c794
commit e1c21d3f28
4 changed files with 65 additions and 57 deletions

View File

@@ -378,8 +378,16 @@ public final class LeavesConfig {
public boolean redstoneShearsWrench = true;
@RemovedConfig(name = "budding-amethyst-can-push-by-piston", category = {}, transform = true)
@GlobalConfig("budding-amethyst-can-push-by-piston")
public boolean buddingAmethystCanPushByPiston = false;
@RemovedConfig(name = "budding-amethyst-can-push-by-piston", category = "modify", transform = true)
@GlobalConfig(value = "movable-budding-amethyst", validator = MovableBuddingAmethystValidator.class)
public boolean movableBuddingAmethyst = false;
private static class MovableBuddingAmethystValidator extends BooleanConfigValidator {
@Override
public void verify(Boolean old, Boolean value) throws IllegalArgumentException {
CarpetRules.register(CarpetRule.of("carpet", "movableAmethyst", value));
}
}
@RemovedConfig(name = "spectator-dont-get-advancement", category = {}, transform = true)
@GlobalConfig("spectator-dont-get-advancement")