mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-19 05:01:40 +01:00
Added prevent-not-fully-grown: true/false config option to Replenish enchantment
This commit is contained in:
parent
302337d331
commit
749ad8c333
@ -80,6 +80,10 @@ class EnchantmentReplenish(
|
||||
}
|
||||
|
||||
if (data.age != data.maximumAge) {
|
||||
if (enchant.config.getBool("prevent-not-fully-grown")) {
|
||||
return
|
||||
}
|
||||
|
||||
event.isDropItems = false
|
||||
event.expToDrop = 0
|
||||
}
|
||||
|
@ -15,3 +15,5 @@ enchantable: true
|
||||
conditions: [ ]
|
||||
|
||||
consume-seeds: true # If seeds should be consumed in replanting
|
||||
|
||||
prevent-not-fully-grown: false # If the enchantment should prevent replanting not fully grown crops
|
||||
|
Loading…
Reference in New Issue
Block a user