Blackhole "destroy blocks" config entry
This commit is contained in:
parent
0ad88d668c
commit
87d29f0c4b
@ -278,7 +278,7 @@ class BlackHoleBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mattery
|
||||
this.mass += HAWKING_MASS_LOSE_STEP
|
||||
}
|
||||
|
||||
if (gravitationStrength > 0.4) {
|
||||
if (ServerConfig.Blackhole.DESTROY_BLOCKS && gravitationStrength > 0.4) {
|
||||
val sphere = getSphericalBlockPositions((gravitationStrength * 12.0).roundToInt())
|
||||
|
||||
if (sphere.size != lastSphereSizeOuter) {
|
||||
|
@ -51,6 +51,10 @@ object ServerConfig : AbstractConfig("misc") {
|
||||
val BOSS_FORCE_MULTIPLIER: Double by builder
|
||||
.comment("Percentage of gravity force experienced by bosses (forge:bosses tag) from Singularities")
|
||||
.defineInRange("BOSS_FORCE_MULTIPLIER", 0.4, 0.0, Float.MAX_VALUE.toDouble())
|
||||
|
||||
val DESTROY_BLOCKS: Boolean by builder
|
||||
.comment("Whenever singularities should destroy blocks")
|
||||
.define("DESTROY_BLOCKS", true)
|
||||
}
|
||||
|
||||
init {
|
||||
|
Loading…
Reference in New Issue
Block a user