Subcontraptions for some people #6119

This commit is contained in:
simibubi 2024-07-25 17:26:19 +02:00
parent 57a7b66553
commit fc21d3abf6
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,8 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import com.simibubi.create.infrastructure.config.AllConfigs;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.level.Level;
@ -51,7 +53,7 @@ public abstract class TranslatingContraption extends Contraption {
@Override
public boolean canBeStabilized(Direction facing, BlockPos localPos) {
return false;
return AllConfigs.server().kinetics.stabiliseStableContraptions.get();
}
}

View File

@ -48,6 +48,7 @@ public class CKinetics extends ConfigBase {
public final ConfigBool harvesterReplants = b(true, "harvesterReplants", Comments.harvesterReplants);
public final ConfigBool minecartContraptionInContainers =
b(false, "minecartContraptionInContainers", Comments.minecartContraptionInContainers);
public final ConfigBool stabiliseStableContraptions = b(false, "stabiliseStableContraptions", Comments.stabiliseStableContraptions, "[Technical]");
public final ConfigGroup stats = group(1, "stats", Comments.stats);
public final ConfigFloat mediumSpeed = f(30, 0, 4096, "mediumSpeed", Comments.rpm, Comments.mediumSpeed);
@ -116,6 +117,7 @@ public class CKinetics extends ConfigBase {
static String amethystMovement = "Configure how Budding Amethyst can be moved by contraptions.";
static String obsidianMovement = "Configure how Obsidian blocks can be moved by contraptions.";
static String minecartContraptionInContainers = "Whether minecart contraptions can be placed into container items.";
static String stabiliseStableContraptions = "Whether stabilised bearings create a separated entity even on non-rotating contraptions.";
}
public enum DeployerAggroSetting {