mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 08:57:44 +01:00
Option to make doors require redstone
This commit is contained in:
committed by
granny
parent
434ace14d3
commit
0e04be6f1b
@@ -458,6 +458,16 @@ public class PurpurWorldConfig {
|
||||
dispenserPlaceAnvils = getBoolean("blocks.dispenser.place-anvils", dispenserPlaceAnvils);
|
||||
}
|
||||
|
||||
public List<Block> doorRequiresRedstone = new ArrayList<>();
|
||||
private void doorSettings() {
|
||||
getList("blocks.door.requires-redstone", new ArrayList<String>()).forEach(key -> {
|
||||
Block block = BuiltInRegistries.BLOCK.getValue(ResourceLocation.parse(key.toString()));
|
||||
if (!block.defaultBlockState().isAir()) {
|
||||
doorRequiresRedstone.add(block);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public boolean baselessEndCrystalExplode = true;
|
||||
public double baselessEndCrystalExplosionPower = 6.0D;
|
||||
public boolean baselessEndCrystalExplosionFire = false;
|
||||
|
||||
Reference in New Issue
Block a user