mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-28 17:21:02 +01:00
Added skull drops for creepers, skeletons and zombies.
This commit is contained in:
parent
59aeaa1494
commit
0ceabfe57a
@ -62,7 +62,6 @@ public class LootablesManager {
|
||||
return loot2;
|
||||
};
|
||||
}
|
||||
|
||||
EntityType killer = null;
|
||||
if (entity.getLastDamageCause() instanceof EntityDamageByEntityEvent) {
|
||||
Entity killerEntity = ((EntityDamageByEntityEvent) entity.getLastDamageCause()).getDamager();
|
||||
@ -76,6 +75,7 @@ public class LootablesManager {
|
||||
}
|
||||
return lootManager.runLoot(modify,
|
||||
entity.getFireTicks() > 0,
|
||||
entity instanceof Creeper && ((Creeper) entity).isPowered(),
|
||||
entity.getKiller() != null ? entity.getKiller().getItemInHand() : null,
|
||||
killer,
|
||||
loot,
|
||||
@ -432,6 +432,9 @@ public class LootablesManager {
|
||||
.setMaterial(CompatibleMaterial.ROTTEN_FLESH)
|
||||
.setMin(0)
|
||||
.setMax(2).build(),
|
||||
new LootBuilder()
|
||||
.setMaterial(CompatibleMaterial.ZOMBIE_HEAD)
|
||||
.setRequireCharged(true).build(),
|
||||
new LootBuilder()
|
||||
.setChance(2.5)
|
||||
.setChildDropCount(1)
|
||||
@ -619,7 +622,10 @@ public class LootablesManager {
|
||||
new LootBuilder()
|
||||
.setMaterial(CompatibleMaterial.BONE)
|
||||
.setMin(0)
|
||||
.setMax(2).build()));
|
||||
.setMax(2).build(),
|
||||
new LootBuilder()
|
||||
.setMaterial(CompatibleMaterial.SKELETON_SKULL)
|
||||
.setRequireCharged(true).build()));
|
||||
|
||||
// Add Snowman.
|
||||
lootManager.addLootable(new Lootable("SNOWMAN",
|
||||
|
Loading…
Reference in New Issue
Block a user