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

Compare commits

...

8 Commits

Author SHA1 Message Date
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
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.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

View File

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

View File

@@ -87,19 +87,11 @@ effects:
# Ran from the perspective of the player # Ran from the perspective of the player
any-attack: [ ] any-attack: [ ]
<<<<<<< HEAD
# Effects ran when the mob takes damage # Effects ran when the mob takes damage
# Ran from the perspective of the entity # 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
=======
# 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 # Ran from the perspective of the player
damage-player: [ ] damage-player: [ ]

View File

@@ -1,5 +1,5 @@
#libreforge-updater #libreforge-updater
#Sat Mar 02 15:21:29 GMT 2024 #Wed Apr 17 20:35:35 BST 2024
kotlin.code.style=official kotlin.code.style=official
libreforge-version=4.56.3 libreforge-version=4.58.1
version=10.1.3 version=10.3.1