mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-19 23:19:17 +00:00
Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d69e9c825 | ||
|
|
ccbf8c8fd0 | ||
|
|
b5ace8f36e | ||
|
|
86352ba528 | ||
|
|
f22c290ff5 | ||
|
|
d1afab2ed6 | ||
|
|
6a335a5371 | ||
|
|
f3f2d581e3 | ||
|
|
78dd714c6b | ||
|
|
a7268cc6bd | ||
|
|
3e2079d634 | ||
|
|
0cf9b376e0 | ||
|
|
94bcad4bdb | ||
|
|
8563c6b655 | ||
|
|
be542028b0 | ||
|
|
831d3661be | ||
|
|
bc14c675ad | ||
|
|
76d7076877 | ||
|
|
ff8b48587f | ||
|
|
23039a73f9 | ||
|
|
2e3324c405 | ||
|
|
c24d0876ca | ||
|
|
800ef7732a | ||
|
|
e6c82e6ac4 | ||
|
|
7008794445 | ||
|
|
c9aac17937 | ||
|
|
3c2f2ba315 | ||
|
|
d4a8665a6a | ||
|
|
eb0a5251d3 | ||
|
|
782edf8da1 | ||
|
|
ac3de8a0fb | ||
|
|
d47b4b9567 | ||
|
|
613632e7a9 | ||
|
|
b8d8d4999f | ||
|
|
aa7000b2aa | ||
|
|
afe6b34c65 | ||
|
|
c9173c06da | ||
|
|
57a4f1a708 | ||
|
|
f031fb51c6 | ||
|
|
8745ee5425 | ||
|
|
428f022d97 | ||
|
|
f17eb06b03 | ||
|
|
e4a805c627 | ||
|
|
ce24ea4cf4 | ||
|
|
47e9ff13dc | ||
|
|
93c5ce5b6c | ||
|
|
11acfed77c | ||
|
|
8cca1f7994 | ||
|
|
f6a40d84f7 | ||
|
|
9e663e89e8 | ||
|
|
58b0ba6b81 | ||
|
|
a40164a03d | ||
|
|
b946346020 | ||
|
|
3753c93bf5 | ||
|
|
9d407b9dea | ||
|
|
08f8b02d22 | ||
|
|
913120e791 |
4
.github/workflows/publish-release.yml
vendored
4
.github/workflows/publish-release.yml
vendored
@@ -15,11 +15,11 @@ jobs:
|
|||||||
- name: Checkout latest code
|
- name: Checkout latest code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 21
|
||||||
|
|
||||||
- name: Change wrapper permissions
|
- name: Change wrapper permissions
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ plugins {
|
|||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
kotlin("jvm") version "1.9.20"
|
kotlin("jvm") version "1.9.20"
|
||||||
id("com.github.johnrengelman.shadow") version "8.0.0"
|
id("io.github.goooler.shadow") version "8.1.7"
|
||||||
id("com.willfp.libreforge-gradle-plugin") version "1.0.0"
|
id("com.willfp.libreforge-gradle-plugin") version "1.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ allprojects {
|
|||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
apply(plugin = "kotlin")
|
apply(plugin = "kotlin")
|
||||||
apply(plugin = "maven-publish")
|
apply(plugin = "maven-publish")
|
||||||
apply(plugin = "com.github.johnrengelman.shadow")
|
apply(plugin = "io.github.goooler.shadow")
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version = rootProject.version
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
|
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")
|
compileOnly("LibsDisguises:LibsDisguises:10.0.38")
|
||||||
implementation("com.willfp:ModelEngineBridge:1.0.0")
|
implementation("com.willfp:ModelEngineBridge:1.0.0")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.willfp.eco.core.command.impl.PluginCommand
|
|||||||
import com.willfp.eco.core.display.DisplayModule
|
import com.willfp.eco.core.display.DisplayModule
|
||||||
import com.willfp.eco.core.entities.ai.EntityGoals
|
import com.willfp.eco.core.entities.ai.EntityGoals
|
||||||
import com.willfp.eco.core.integrations.IntegrationLoader
|
import com.willfp.eco.core.integrations.IntegrationLoader
|
||||||
|
import com.willfp.eco.util.toSingletonList
|
||||||
import com.willfp.ecomobs.category.MobCategories
|
import com.willfp.ecomobs.category.MobCategories
|
||||||
import com.willfp.ecomobs.category.spawning.spawnpoints.SpawnPointGenerator
|
import com.willfp.ecomobs.category.spawning.spawnpoints.SpawnPointGenerator
|
||||||
import com.willfp.ecomobs.commands.CommandEcoMobs
|
import com.willfp.ecomobs.commands.CommandEcoMobs
|
||||||
@@ -19,8 +20,13 @@ import com.willfp.ecomobs.integrations.libsdisguises.IntegrationLibsDisguises
|
|||||||
import com.willfp.ecomobs.integrations.modelengine.IntegrationModelEngine
|
import com.willfp.ecomobs.integrations.modelengine.IntegrationModelEngine
|
||||||
import com.willfp.ecomobs.mob.EcoMobs
|
import com.willfp.ecomobs.mob.EcoMobs
|
||||||
import com.willfp.ecomobs.mob.damage.TopDamagerHandler
|
import com.willfp.ecomobs.mob.damage.TopDamagerHandler
|
||||||
|
import com.willfp.ecomobs.mob.impl.ecoMob
|
||||||
|
import com.willfp.libreforge.EmptyProvidedHolder.holder
|
||||||
|
import com.willfp.libreforge.EntityProvidedHolder
|
||||||
import com.willfp.libreforge.loader.LibreforgePlugin
|
import com.willfp.libreforge.loader.LibreforgePlugin
|
||||||
import com.willfp.libreforge.loader.configs.ConfigCategory
|
import com.willfp.libreforge.loader.configs.ConfigCategory
|
||||||
|
import com.willfp.libreforge.registerSpecificHolderProvider
|
||||||
|
import org.bukkit.entity.Mob
|
||||||
import org.bukkit.event.Listener
|
import org.bukkit.event.Listener
|
||||||
|
|
||||||
internal lateinit var plugin: EcoMobsPlugin
|
internal lateinit var plugin: EcoMobsPlugin
|
||||||
@@ -34,6 +40,14 @@ class EcoMobsPlugin : LibreforgePlugin() {
|
|||||||
plugin = this
|
plugin = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun handleEnable() {
|
||||||
|
registerSpecificHolderProvider<Mob> {
|
||||||
|
it.ecoMob?.entityHolder.toSingletonList().map { holder ->
|
||||||
|
EntityProvidedHolder(holder, it)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun handleLoad() {
|
override fun handleLoad() {
|
||||||
EntityGoals.register(EntityGoalRandomTeleport.Deserializer)
|
EntityGoals.register(EntityGoalRandomTeleport.Deserializer)
|
||||||
}
|
}
|
||||||
@@ -52,7 +66,8 @@ class EcoMobsPlugin : LibreforgePlugin() {
|
|||||||
VanillaCompatibilityHandlers(),
|
VanillaCompatibilityHandlers(),
|
||||||
DiscoverRecipeListener(this),
|
DiscoverRecipeListener(this),
|
||||||
SpawnEggHandler(this),
|
SpawnEggHandler(this),
|
||||||
SpawnTotemHandler()
|
SpawnTotemHandler(),
|
||||||
|
topDamagerHandler
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package com.willfp.ecomobs.integrations.levelledmobs
|
|||||||
import com.willfp.eco.core.integrations.Integration
|
import com.willfp.eco.core.integrations.Integration
|
||||||
import com.willfp.ecomobs.integrations.MobIntegration
|
import com.willfp.ecomobs.integrations.MobIntegration
|
||||||
import com.willfp.ecomobs.mob.impl.ecoMob
|
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.entity.Mob
|
||||||
import org.bukkit.event.EventHandler
|
import org.bukkit.event.EventHandler
|
||||||
import org.bukkit.event.Listener
|
import org.bukkit.event.Listener
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class IntegrationModelEngine : Listener, Integration {
|
|||||||
|
|
||||||
val modelled = ModelEngineBridge.instance.createModeledEntity(entity)
|
val modelled = ModelEngineBridge.instance.createModeledEntity(entity)
|
||||||
modelled.addModel(model)
|
modelled.addModel(model)
|
||||||
modelled.isBaseEntityVisible = true
|
modelled.isBaseEntityVisible = false
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getPluginName(): String {
|
override fun getPluginName(): String {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import com.willfp.ecomobs.category.MobCategory
|
|||||||
import com.willfp.ecomobs.integrations.MobIntegration
|
import com.willfp.ecomobs.integrations.MobIntegration
|
||||||
import com.willfp.ecomobs.mob.event.MobEvent
|
import com.willfp.ecomobs.mob.event.MobEvent
|
||||||
import com.willfp.ecomobs.mob.options.SpawnEgg
|
import com.willfp.ecomobs.mob.options.SpawnEgg
|
||||||
|
import com.willfp.libreforge.Holder
|
||||||
import com.willfp.libreforge.triggers.DispatchedTrigger
|
import com.willfp.libreforge.triggers.DispatchedTrigger
|
||||||
import org.bukkit.Location
|
import org.bukkit.Location
|
||||||
import org.bukkit.entity.Mob
|
import org.bukkit.entity.Mob
|
||||||
@@ -50,6 +51,11 @@ interface EcoMob : KRegistrable {
|
|||||||
*/
|
*/
|
||||||
val customEntity: CustomEntity
|
val customEntity: CustomEntity
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The entity holder.
|
||||||
|
*/
|
||||||
|
val entityHolder: Holder
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a living mob from a bukkit mob.
|
* Get a living mob from a bukkit mob.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ interface LivingMob {
|
|||||||
/**
|
/**
|
||||||
* Kill the mob.
|
* Kill the mob.
|
||||||
*/
|
*/
|
||||||
fun kill(player: Player?)
|
fun kill(player: Player?, removeTracking: Boolean = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Despawn the mob.
|
* Despawn the mob.
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package com.willfp.ecomobs.mob.damage
|
package com.willfp.ecomobs.mob.damage
|
||||||
|
|
||||||
import com.willfp.eco.util.savedDisplayName
|
import com.willfp.eco.util.savedDisplayName
|
||||||
|
import com.willfp.eco.util.toNiceString
|
||||||
import com.willfp.eco.util.tryAsPlayer
|
import com.willfp.eco.util.tryAsPlayer
|
||||||
import com.willfp.ecomobs.EcoMobsPlugin
|
import com.willfp.ecomobs.EcoMobsPlugin
|
||||||
import com.willfp.libreforge.NamedValue
|
import com.willfp.libreforge.NamedValue
|
||||||
|
import com.willfp.libreforge.triggers.TriggerData
|
||||||
import org.bukkit.Bukkit
|
import org.bukkit.Bukkit
|
||||||
import org.bukkit.entity.Mob
|
import org.bukkit.entity.Mob
|
||||||
import org.bukkit.event.EventHandler
|
import org.bukkit.event.EventHandler
|
||||||
@@ -49,10 +51,21 @@ class TopDamagerHandler(
|
|||||||
|
|
||||||
fun generatePlaceholders(mob: Mob): List<NamedValue> {
|
fun generatePlaceholders(mob: Mob): List<NamedValue> {
|
||||||
return mob.topDamagers
|
return mob.topDamagers
|
||||||
.mapIndexed { index, damager ->
|
.flatMapIndexed { index, damager ->
|
||||||
NamedValue("top_damager_${index + 1}_name", Bukkit.getOfflinePlayer(damager.uuid).name ?: "Unknown")
|
listOf(
|
||||||
NamedValue("top_damager_${index + 1}_display", Bukkit.getOfflinePlayer(damager.uuid).savedDisplayName)
|
NamedValue(
|
||||||
NamedValue("top_damager_${index + 1}_damage", damager.damage.toString())
|
"top_damager_${index + 1}_name",
|
||||||
|
Bukkit.getOfflinePlayer(damager.uuid).name ?: "Unknown"
|
||||||
|
),
|
||||||
|
NamedValue(
|
||||||
|
"top_damager_${index + 1}_display",
|
||||||
|
Bukkit.getOfflinePlayer(damager.uuid).savedDisplayName
|
||||||
|
),
|
||||||
|
NamedValue(
|
||||||
|
"top_damager_${index + 1}_damage",
|
||||||
|
damager.damage.toNiceString()
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,12 @@ object MobEventKill : MobEvent("kill") {
|
|||||||
Bukkit.getPluginManager().callEvent(EcoMobKillEvent(living, player))
|
Bukkit.getPluginManager().callEvent(EcoMobKillEvent(living, player))
|
||||||
|
|
||||||
living.handleEvent(this, data.dispatch(player.toDispatcher()))
|
living.handleEvent(this, data.dispatch(player.toDispatcher()))
|
||||||
living.kill(player)
|
|
||||||
|
// Tracking isn't removed here because it's removed in MobEventDeath, which is called after this one.
|
||||||
|
// Otherwise, player kills wouldn't fire the death event.
|
||||||
|
living.kill(
|
||||||
|
player,
|
||||||
|
removeTracking = false
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,14 +49,19 @@ import com.willfp.ecomobs.tick.TickHandlerBossBar
|
|||||||
import com.willfp.ecomobs.tick.TickHandlerDisplayName
|
import com.willfp.ecomobs.tick.TickHandlerDisplayName
|
||||||
import com.willfp.ecomobs.tick.TickHandlerLifespan
|
import com.willfp.ecomobs.tick.TickHandlerLifespan
|
||||||
import com.willfp.libreforge.ConfigViolation
|
import com.willfp.libreforge.ConfigViolation
|
||||||
|
import com.willfp.libreforge.Holder
|
||||||
import com.willfp.libreforge.ViolationContext
|
import com.willfp.libreforge.ViolationContext
|
||||||
|
import com.willfp.libreforge.conditions.ConditionList
|
||||||
import com.willfp.libreforge.conditions.Conditions
|
import com.willfp.libreforge.conditions.Conditions
|
||||||
|
import com.willfp.libreforge.conditions.emptyConditionList
|
||||||
|
import com.willfp.libreforge.effects.EffectList
|
||||||
import com.willfp.libreforge.effects.Effects
|
import com.willfp.libreforge.effects.Effects
|
||||||
import com.willfp.libreforge.enumValueOfOrNull
|
import com.willfp.libreforge.enumValueOfOrNull
|
||||||
import com.willfp.libreforge.triggers.DispatchedTrigger
|
import com.willfp.libreforge.triggers.DispatchedTrigger
|
||||||
import net.kyori.adventure.bossbar.BossBar
|
import net.kyori.adventure.bossbar.BossBar
|
||||||
import org.bukkit.Bukkit
|
import org.bukkit.Bukkit
|
||||||
import org.bukkit.Location
|
import org.bukkit.Location
|
||||||
|
import org.bukkit.NamespacedKey
|
||||||
import org.bukkit.entity.Mob
|
import org.bukkit.entity.Mob
|
||||||
import org.bukkit.entity.Player
|
import org.bukkit.entity.Player
|
||||||
import org.bukkit.event.entity.CreatureSpawnEvent
|
import org.bukkit.event.entity.CreatureSpawnEvent
|
||||||
@@ -309,6 +314,17 @@ internal class ConfigDrivenEcoMob(
|
|||||||
{ (it as? Mob)?.ecoMob == this }
|
{ (it as? Mob)?.ecoMob == this }
|
||||||
) {
|
) {
|
||||||
this.spawn(it, SpawnReason.COMMAND)!!.entity
|
this.spawn(it, SpawnReason.COMMAND)!!.entity
|
||||||
|
}.apply { register() }
|
||||||
|
|
||||||
|
override val entityHolder = object : Holder {
|
||||||
|
override val id = plugin.createNamespacedKey(getID())
|
||||||
|
|
||||||
|
override val effects: EffectList = Effects.compile(
|
||||||
|
config.getSubsections("effects.permanent-effects"),
|
||||||
|
context.with("effects").with("permanent effects")
|
||||||
|
)
|
||||||
|
|
||||||
|
override val conditions = emptyConditionList()
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -353,7 +369,6 @@ internal class ConfigDrivenEcoMob(
|
|||||||
return trackedMobs[uuid]
|
return trackedMobs[uuid]
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNCHECKED_CAST")
|
|
||||||
override fun spawn(location: Location, reason: SpawnReason): LivingMob? {
|
override fun spawn(location: Location, reason: SpawnReason): LivingMob? {
|
||||||
// Call bukkit event
|
// Call bukkit event
|
||||||
val preSpawnEvent = EcoMobPreSpawnEvent(this, reason)
|
val preSpawnEvent = EcoMobPreSpawnEvent(this, reason)
|
||||||
@@ -364,7 +379,7 @@ internal class ConfigDrivenEcoMob(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Spawn bukkit mob
|
// Spawn bukkit mob
|
||||||
val entity = mob.spawn(location) as? Mob ?: throw IllegalStateException("Mob is not a mob")
|
val entity = mob.spawn(location) as? Mob ?: throw IllegalStateException("Base entity must be a mob!")
|
||||||
|
|
||||||
// Mark as custom mob
|
// Mark as custom mob
|
||||||
entity.ecoMob = this
|
entity.ecoMob = this
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ internal class LivingMobImpl(
|
|||||||
private val plugin: EcoMobsPlugin,
|
private val plugin: EcoMobsPlugin,
|
||||||
override val mob: EcoMob,
|
override val mob: EcoMob,
|
||||||
override val entity: Mob,
|
override val entity: Mob,
|
||||||
private val deathCallback: () -> Unit
|
private val trackingRemovalCallback: () -> Unit
|
||||||
) : LivingMob {
|
) : LivingMob {
|
||||||
private val ticker = plugin.runnableFactory.create {
|
private val ticker = plugin.runnableFactory.create {
|
||||||
tick(tick)
|
tick(tick)
|
||||||
@@ -27,13 +27,13 @@ internal class LivingMobImpl(
|
|||||||
|
|
||||||
if (!isAlive) {
|
if (!isAlive) {
|
||||||
it.cancel()
|
it.cancel()
|
||||||
remove()
|
handleRemove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private var isRunning = false
|
private var isRunning = false
|
||||||
|
|
||||||
private var tick = 1
|
private var tick = 0
|
||||||
|
|
||||||
private val tickHandlers = mutableListOf<TickHandler>()
|
private val tickHandlers = mutableListOf<TickHandler>()
|
||||||
|
|
||||||
@@ -77,25 +77,26 @@ internal class LivingMobImpl(
|
|||||||
mob.handleEvent(event, trigger)
|
mob.handleEvent(event, trigger)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun kill(player: Player?) {
|
override fun kill(player: Player?, removeTracking: Boolean) {
|
||||||
remove()
|
handleRemove(removeTracking = removeTracking)
|
||||||
|
|
||||||
mob.spawnDrops(entity.location, player)
|
mob.spawnDrops(entity.location, player)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun despawn() {
|
override fun despawn() {
|
||||||
remove()
|
entity.remove()
|
||||||
|
handleRemove()
|
||||||
|
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(
|
||||||
EcoMobDespawnEvent(this)
|
EcoMobDespawnEvent(this)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun remove() {
|
private fun handleRemove(removeTracking: Boolean = true) {
|
||||||
ticker.cancel()
|
ticker.cancel()
|
||||||
|
if (removeTracking) {
|
||||||
entity.remove()
|
trackingRemovalCallback()
|
||||||
deathCallback()
|
}
|
||||||
|
|
||||||
for (handler in this.tickHandlers) {
|
for (handler in this.tickHandlers) {
|
||||||
handler.onRemove(this, tick)
|
handler.onRemove(this, tick)
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ environment:
|
|||||||
|
|
||||||
options:
|
options:
|
||||||
resource-id: 525
|
resource-id: 525
|
||||||
bstats-id: 10635
|
bstats-id: 20581
|
||||||
color: "&9"
|
color: "&9"
|
||||||
proxy-package: "com.willfp.ecomobs.nms"
|
proxy-package: "com.willfp.ecomobs.nms"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
messages:
|
messages:
|
||||||
prefix: "&9&lEcoMobs &f» "
|
prefix: "&9&lEcoMobs &8» &f"
|
||||||
no-permission: "&cYou don't have permission to do this!"
|
no-permission: "&cYou don't have permission to do this!"
|
||||||
not-player: "&cThis command must be run by a player"
|
not-player: "&cThis command must be run by a player"
|
||||||
invalid-command: "&cUnknown subcommand!"
|
invalid-command: "&cUnknown subcommand!"
|
||||||
|
|||||||
@@ -52,43 +52,59 @@ custom-ai:
|
|||||||
# How the mob should behave.
|
# How the mob should behave.
|
||||||
entity-goals: [ ]
|
entity-goals: [ ]
|
||||||
|
|
||||||
# Effects are done from the player's perspective: to treat the player as the victim,
|
# Some effects are ran from the perspective of the entity, and others from the perspective
|
||||||
# either use self_as_victim in args, or use player_as_victim in mutators.
|
# of the player - each section is marked with which perspective it is run from.
|
||||||
|
|
||||||
# You can use display name placeholders in effects
|
# You can use display name placeholders in effects
|
||||||
# You can also use top damager placeholders:
|
# You can also use top damager placeholders:
|
||||||
# %top_damager_<place>_name%, %top_damager_<place>_damage%, %top_damager_<place>_display%
|
# %top_damager_<place>_name%, %top_damager_<place>_damage%, %top_damager_<place>_display%
|
||||||
effects:
|
effects:
|
||||||
|
# Effects that are active all the time
|
||||||
|
# Ran from the perspective of the entity
|
||||||
|
permanent-effects: [ ]
|
||||||
|
|
||||||
# Effects ran when the mob spawns
|
# Effects ran when the mob spawns
|
||||||
|
# Ran from the perspective of the entity
|
||||||
spawn: [ ]
|
spawn: [ ]
|
||||||
|
|
||||||
# Effects ran when the mob despawns
|
# Effects ran when the mob despawns
|
||||||
|
# Ran from the perspective of the entity
|
||||||
despawn: [ ]
|
despawn: [ ]
|
||||||
|
|
||||||
# Effects ran when the player interacts with the mob
|
# Effects ran when the player interacts with the mob
|
||||||
|
# Ran from the perspective of the player
|
||||||
interact: [ ]
|
interact: [ ]
|
||||||
|
|
||||||
# Effects ran when the player melee attacks the mob
|
# Effects ran when the player melee attacks the mob
|
||||||
|
# Ran from the perspective of the player
|
||||||
melee-attack: [ ]
|
melee-attack: [ ]
|
||||||
|
|
||||||
# Effects ran when the player does a ranged attack on the mob
|
# Effects ran when the player does a ranged attack on the mob
|
||||||
|
# Ran from the perspective of the player
|
||||||
ranged-attack: [ ]
|
ranged-attack: [ ]
|
||||||
|
|
||||||
# Effects ran when the player attacks the mob
|
# Effects ran when the player attacks the mob
|
||||||
|
# Ran from the perspective of the player
|
||||||
any-attack: [ ]
|
any-attack: [ ]
|
||||||
|
|
||||||
# Effects ran when the mob takes damage
|
# Effects ran when the mob takes damage
|
||||||
|
# Ran from the perspective of the entity
|
||||||
take-damage: [ ]
|
take-damage: [ ]
|
||||||
|
|
||||||
# Effects ran when the player is damaged by the mob
|
# Effects ran when the player is damaged by the mob
|
||||||
|
# Ran from the perspective of the player
|
||||||
damage-player: [ ]
|
damage-player: [ ]
|
||||||
|
|
||||||
# Effects ran when the player is killed by the mob
|
# Effects ran when the player is killed by the mob
|
||||||
|
# Ran from the perspective of the player
|
||||||
kill-player: [ ]
|
kill-player: [ ]
|
||||||
|
|
||||||
# Effects ran when the mob dies
|
# Effects ran when the mob dies
|
||||||
|
# Ran from the perspective of the entity
|
||||||
death: [ ]
|
death: [ ]
|
||||||
|
|
||||||
# Effects ran when the mob is killed by the player
|
# Effects ran when the mob is killed by the player
|
||||||
|
# Ran from the perspective of the player
|
||||||
kill: [ ]
|
kill: [ ]
|
||||||
|
|
||||||
# The lifespan of the mob, in seconds. Set to -1 to disable.
|
# The lifespan of the mob, in seconds. Set to -1 to disable.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#libreforge-updater
|
#libreforge-updater
|
||||||
#Sun Dec 24 14:55:22 CET 2023
|
#Thu Jul 18 13:24:06 BST 2024
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
libreforge-version=4.51.0
|
libreforge-version=4.67.0
|
||||||
version=10.0.0-b2
|
version=10.12.0
|
||||||
|
|||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,7 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -2,12 +2,15 @@ pluginManagement {
|
|||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven("https://repo.jpenilla.xyz/snapshots/")
|
|
||||||
maven("https://repo.auxilor.io/repository/maven-public/")
|
maven("https://repo.auxilor.io/repository/maven-public/")
|
||||||
maven("https://repo.papermc.io/repository/maven-public/")
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
||||||
|
}
|
||||||
|
|
||||||
rootProject.name = "EcoMobs"
|
rootProject.name = "EcoMobs"
|
||||||
|
|
||||||
// Core
|
// Core
|
||||||
|
|||||||
Reference in New Issue
Block a user