mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-19 15:09:17 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
800ef7732a | ||
|
|
e6c82e6ac4 | ||
|
|
7008794445 | ||
|
|
c9aac17937 | ||
|
|
3c2f2ba315 | ||
|
|
d4a8665a6a | ||
|
|
eb0a5251d3 | ||
|
|
782edf8da1 | ||
|
|
ac3de8a0fb | ||
|
|
d47b4b9567 |
@@ -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:
|
||||
|
||||
@@ -87,19 +87,11 @@ effects:
|
||||
# Ran from the perspective of the player
|
||||
any-attack: [ ]
|
||||
|
||||
<<<<<<< HEAD
|
||||
# Effects ran when the mob takes damage
|
||||
# Ran from the perspective of the entity
|
||||
take-damage: [ ]
|
||||
|
||||
# Effects ran when the player is damaged by the mob
|
||||
=======
|
||||
# Effects ran when the mob takes damage
|
||||
# Ran from the perspective of the entity
|
||||
take-damage: [ ]
|
||||
|
||||
# Effects ran when the player is damaged by the mob
|
||||
>>>>>>> f031fb51c6a3787bc44e8bc099d3655e74366f70
|
||||
# Ran from the perspective of the player
|
||||
damage-player: [ ]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#libreforge-updater
|
||||
#Tue Jan 30 11:28:25 GMT 2024
|
||||
#Thu Apr 11 13:17:32 BST 2024
|
||||
kotlin.code.style=official
|
||||
libreforge-version=4.55.3
|
||||
version=10.0.0
|
||||
libreforge-version=4.57.1
|
||||
version=10.2.1
|
||||
|
||||
Reference in New Issue
Block a user