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