From 4350c3c334f01d95fdd192f4376f95dac449e444 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Fri, 10 Dec 2021 01:37:35 +0100 Subject: [PATCH] Moving the Buds --- .../com/simibubi/create/foundation/config/CKinetics.java | 5 ++++- .../create/foundation/config/ContraptionMovementSetting.java | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/foundation/config/CKinetics.java b/src/main/java/com/simibubi/create/foundation/config/CKinetics.java index 00b14b08c..e1e9cf008 100644 --- a/src/main/java/com/simibubi/create/foundation/config/CKinetics.java +++ b/src/main/java/com/simibubi/create/foundation/config/CKinetics.java @@ -37,7 +37,9 @@ public class CKinetics extends ConfigBase { public final ConfigInt maxRopeLength = i(128, 1, "maxRopeLength", Comments.maxRopeLength); public final ConfigInt maxCartCouplingLength = i(32, 1, "maxCartCouplingLength", Comments.maxCartCouplingLength); public final ConfigEnum spawnerMovement = - e(ContraptionMovementSetting.NO_PICKUP, "movableSpawners", Comments.spawnerMovement); + e(ContraptionMovementSetting.NO_PICKUP, "movableSpawners", Comments.spawnerMovement); + public final ConfigEnum amethystMovement = + e(ContraptionMovementSetting.NO_PICKUP, "amethystMovement", Comments.amethystMovement); public final ConfigEnum obsidianMovement = e(ContraptionMovementSetting.UNMOVABLE, "movableObsidian", Comments.obsidianMovement); public final ConfigBool moveItemsToStorage = b(true, "moveItemsToStorage", Comments.moveItemsToStorage); @@ -108,6 +110,7 @@ public class CKinetics extends ConfigBase { static String ejectorScanInterval = "Time in ticks until the next item launched by an ejector scans blocks for potential collisions"; static String spawnerMovement = "Configure how Spawner blocks can be moved by contraptions."; + static String amethystMovement = "Configure how Budding Amethyst can be moved by contraptions."; static String obsidianMovement = "Configure how Obsidian blocks can be moved by contraptions."; } diff --git a/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java b/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java index e889caf51..b31539745 100644 --- a/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java +++ b/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java @@ -22,6 +22,7 @@ public enum ContraptionMovementSetting { } static { + register(Blocks.BUDDING_AMETHYST.getRegistryName(), () -> AllConfigs.SERVER.kinetics.amethystMovement.get()); register(Blocks.SPAWNER.getRegistryName(), () -> AllConfigs.SERVER.kinetics.spawnerMovement.get()); register(Blocks.OBSIDIAN.getRegistryName(), () -> AllConfigs.SERVER.kinetics.obsidianMovement.get()); register(Blocks.CRYING_OBSIDIAN.getRegistryName(), () -> AllConfigs.SERVER.kinetics.obsidianMovement.get());