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

Compare commits

...

33 Commits

Author SHA1 Message Date
Auxilor
ecf183d175 libreforge-updater 2024-08-15 15:07:27 +01:00
Auxilor
100adf8382 libreforge-updater 2024-08-03 13:41:17 +01:00
Auxilor
aeb40958dd libreforge-updater 2024-07-25 10:04:26 +01:00
Auxilor
e8de0d041d libreforge-updater 2024-07-21 12:19:11 +01:00
Auxilor
f887e15992 libreforge-updater 2024-07-19 20:28:31 +01:00
Auxilor
6d69e9c825 libreforge-updater 2024-07-18 13:24:06 +01:00
Auxilor
ccbf8c8fd0 libreforge-updater 2024-07-16 17:13:35 +01:00
Auxilor
b5ace8f36e libreforge-updater 2024-07-13 20:45:12 +01:00
Auxilor
86352ba528 libreforge-updater 2024-07-08 15:58:22 +01:00
Auxilor
f22c290ff5 Downgraded to Java 17 for compatibility 2024-07-08 14:37:27 +01:00
Auxilor
d1afab2ed6 libreforge-updater 2024-07-05 13:02:38 +01:00
Auxilor
6a335a5371 libreforge-updater 2024-07-03 17:43:49 +01:00
Auxilor
f3f2d581e3 libreforge-updater 2024-06-29 16:43:54 +01:00
Auxilor
78dd714c6b libreforge-updater 2024-06-28 15:56:17 +01:00
Auxilor
a7268cc6bd libreforge-updater 2024-06-27 18:54:20 +01:00
Auxilor
3e2079d634 libreforge-updater 2024-06-26 16:52:13 +01:00
Auxilor
0cf9b376e0 libreforge-updater 2024-06-25 15:13:52 +01:00
Auxilor
94bcad4bdb libreforge-updater 2024-06-24 15:06:28 +01:00
Auxilor
8563c6b655 Updated to Java 21 2024-06-24 13:44:48 +01:00
Auxilor
be542028b0 libreforge-updater 2024-06-23 17:26:26 +01:00
Auxilor
831d3661be libreforge-updater 2024-06-23 13:18:48 +01:00
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
11 changed files with 24 additions and 19 deletions

View File

@@ -15,11 +15,11 @@ jobs:
- name: Checkout latest code
uses: actions/checkout@v2
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
java-version: 21
- name: Change wrapper permissions
run: chmod +x ./gradlew

View File

@@ -3,7 +3,7 @@ plugins {
`java-library`
`maven-publish`
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"
}
@@ -23,7 +23,7 @@ allprojects {
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "io.github.goooler.shadow")
repositories {
mavenLocal()

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
#Sat Mar 02 15:21:29 GMT 2024
#Thu Aug 15 15:07:27 BST 2024
kotlin.code.style=official
libreforge-version=4.56.3
version=10.1.3
libreforge-version=4.71.1
version=10.16.1

Binary file not shown.

View File

@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
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
zipStorePath=wrapper/dists

View File

@@ -2,12 +2,15 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenLocal()
maven("https://repo.jpenilla.xyz/snapshots/")
maven("https://repo.auxilor.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"
// Core