9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-19 15:09:17 +00:00

Compare commits

...

13 Commits

Author SHA1 Message Date
Will FP
bc14c675ad libreforge-updater 2024-05-31 20:38:17 +01:00
Will FP
76d7076877 Merge pull request #60 from stumper66/master
LevelledMobs 4.0 Support
2024-05-24 16:12:26 +01:00
Penal Buffalo
ff8b48587f LevelledMobs 4.0 Support
Updated the API to 4.0
2024-05-24 09:41:28 -05:00
Will FP
23039a73f9 libreforge-updater 2024-05-11 18:21:43 +01:00
Will FP
2e3324c405 libreforge-updater 2024-04-17 20:35:35 +01:00
Auxilor
c24d0876ca libreforge-updater 2024-04-15 18:19:34 +01:00
Auxilor
800ef7732a libreforge-updater 2024-04-11 13:17:32 +01:00
Auxilor
e6c82e6ac4 libreforge-updater 2024-03-29 16:08:40 +00:00
Will FP
7008794445 Fixed _example.yml 2024-03-28 11:25:56 +00:00
Will FP
c9aac17937 libreforge-updater 2024-03-11 17:38:41 +00:00
Will FP
3c2f2ba315 libreforge-updater 2024-03-10 20:10:14 +00:00
Will FP
d4a8665a6a Added chance option to replace 2024-03-04 18:36:38 +00:00
Will FP
eb0a5251d3 libreforge-updater 2024-03-02 15:21:29 +00:00
6 changed files with 13 additions and 13 deletions

View File

@@ -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")
}

View File

@@ -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

View File

@@ -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

View File

@@ -26,6 +26,9 @@ spawning:
- zombie
- skeleton
# The chance for the mob to override, as a percentage
chance: 100
# Options for custom spawning
custom:

View File

@@ -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: [ ]

View File

@@ -1,5 +1,5 @@
#libreforge-updater
#Thu Feb 22 13:18:55 GMT 2024
#Fri May 31 20:38:17 BST 2024
kotlin.code.style=official
libreforge-version=4.56.2
version=10.1.2
libreforge-version=4.59.1
version=10.4.1