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
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
Will FP
782edf8da1 libreforge-updater 2024-02-22 13:18:55 +00:00
Will FP
ac3de8a0fb libreforge-updater 2024-02-15 13:03:11 +00:00
Will FP
d47b4b9567 libreforge-updater 2024-02-08 19:50:40 +00:00
4 changed files with 11 additions and 11 deletions

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

@@ -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
#Tue Jan 30 11:28:25 GMT 2024
#Sat May 11 18:21:43 BST 2024
kotlin.code.style=official
libreforge-version=4.55.3
version=10.0.0
libreforge-version=4.59.0
version=10.4.0