Added prevent-not-fully-grown: true/false config option to Replenish enchantment

This commit is contained in:
_OfTeN_ 2023-06-17 19:16:16 +03:00
parent 302337d331
commit 749ad8c333
2 changed files with 6 additions and 0 deletions

View File

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

View File

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