Think of the children! #2
@@ -5,6 +5,7 @@ import net.kyori.adventure.text.format.TextDecoration
|
||||
import org.bukkit.Bukkit.createProfile
|
||||
import org.bukkit.Material
|
||||
import org.bukkit.NamespacedKey
|
||||
import org.bukkit.entity.Ageable
|
||||
import org.bukkit.entity.Creeper
|
||||
import org.bukkit.entity.EntityType
|
||||
import org.bukkit.entity.Player
|
||||
@@ -31,6 +32,10 @@ class Events : Listener {
|
||||
return
|
||||
}
|
||||
|
||||
if (!(event.entity as Ageable).isAdult) {
|
||||
return
|
||||
}
|
||||
|
||||
val dropChance = if (event.entityType == EntityType.CREEPER && (event.entity as Creeper).isPowered) {
|
||||
MobHeadsOG.config.chargedCreeperChance
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user