mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-19 15:09:17 +00:00
Compare commits
17 Commits
10.0.0-b10
...
10.4.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc14c675ad | ||
|
|
76d7076877 | ||
|
|
ff8b48587f | ||
|
|
23039a73f9 | ||
|
|
2e3324c405 | ||
|
|
c24d0876ca | ||
|
|
800ef7732a | ||
|
|
e6c82e6ac4 | ||
|
|
7008794445 | ||
|
|
c9aac17937 | ||
|
|
3c2f2ba315 | ||
|
|
d4a8665a6a | ||
|
|
eb0a5251d3 | ||
|
|
782edf8da1 | ||
|
|
ac3de8a0fb | ||
|
|
d47b4b9567 | ||
|
|
613632e7a9 |
@@ -3,7 +3,7 @@ version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
|
||||
compileOnly("com.github.lokka30:LevelledMobs:3.1.4")
|
||||
compileOnly("io.github.arcaneplugins:levelledmobs-plugin:4.0.2")
|
||||
compileOnly("LibsDisguises:LibsDisguises:10.0.38")
|
||||
implementation("com.willfp:ModelEngineBridge:1.0.0")
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.willfp.ecomobs.integrations.levelledmobs
|
||||
import com.willfp.eco.core.integrations.Integration
|
||||
import com.willfp.ecomobs.integrations.MobIntegration
|
||||
import com.willfp.ecomobs.mob.impl.ecoMob
|
||||
import me.lokka30.levelledmobs.events.MobPreLevelEvent
|
||||
import io.github.arcaneplugins.levelledmobs.events.MobPreLevelEvent
|
||||
import org.bukkit.entity.Mob
|
||||
import org.bukkit.event.EventHandler
|
||||
import org.bukkit.event.Listener
|
||||
|
||||
@@ -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
|
||||
#Thu Jan 18 17:03:56 GMT 2024
|
||||
#Fri May 31 20:38:17 BST 2024
|
||||
kotlin.code.style=official
|
||||
libreforge-version=4.55.2
|
||||
version=10.0.0-b10
|
||||
libreforge-version=4.59.1
|
||||
version=10.4.1
|
||||
|
||||
Reference in New Issue
Block a user