mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-19 15:09:17 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9aac17937 | ||
|
|
3c2f2ba315 | ||
|
|
d4a8665a6a | ||
|
|
eb0a5251d3 | ||
|
|
782edf8da1 | ||
|
|
ac3de8a0fb | ||
|
|
d47b4b9567 | ||
|
|
613632e7a9 | ||
|
|
b8d8d4999f |
@@ -2,6 +2,7 @@ package com.willfp.ecomobs.category.spawning.impl
|
||||
|
||||
import com.willfp.eco.core.config.interfaces.Config
|
||||
import com.willfp.eco.core.entities.Entities
|
||||
import com.willfp.eco.util.randDouble
|
||||
import com.willfp.ecomobs.EcoMobsPlugin
|
||||
import com.willfp.ecomobs.category.MobCategory
|
||||
import com.willfp.ecomobs.category.spawning.SpawnMethod
|
||||
@@ -57,6 +58,10 @@ object SpawnMethodFactoryReplace : SpawnMethodFactory("replace") {
|
||||
return
|
||||
}
|
||||
|
||||
if (randDouble(0.0, 100.0) > config.getDouble("chance")) {
|
||||
return
|
||||
}
|
||||
|
||||
val mob = category.mobs.randomOrNull() ?: return
|
||||
|
||||
|
||||
|
||||
@@ -26,6 +26,9 @@ spawning:
|
||||
- zombie
|
||||
- skeleton
|
||||
|
||||
# The chance for the mob to override, as a percentage
|
||||
chance: 100
|
||||
|
||||
|
||||
# Options for custom spawning
|
||||
custom:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#libreforge-updater
|
||||
#Tue Jan 16 13:29:47 GMT 2024
|
||||
#Mon Mar 11 17:38:41 GMT 2024
|
||||
kotlin.code.style=official
|
||||
libreforge-version=4.55.1
|
||||
version=10.0.0-b9
|
||||
libreforge-version=4.56.5
|
||||
version=10.1.5
|
||||
|
||||
Reference in New Issue
Block a user