mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-09-28 22:47:49 +02: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;
|
return loot2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
EntityType killer = null;
|
EntityType killer = null;
|
||||||
if (entity.getLastDamageCause() instanceof EntityDamageByEntityEvent) {
|
if (entity.getLastDamageCause() instanceof EntityDamageByEntityEvent) {
|
||||||
Entity killerEntity = ((EntityDamageByEntityEvent) entity.getLastDamageCause()).getDamager();
|
Entity killerEntity = ((EntityDamageByEntityEvent) entity.getLastDamageCause()).getDamager();
|
||||||
@ -76,6 +75,7 @@ public class LootablesManager {
|
|||||||
}
|
}
|
||||||
return lootManager.runLoot(modify,
|
return lootManager.runLoot(modify,
|
||||||
entity.getFireTicks() > 0,
|
entity.getFireTicks() > 0,
|
||||||
|
entity instanceof Creeper && ((Creeper) entity).isPowered(),
|
||||||
entity.getKiller() != null ? entity.getKiller().getItemInHand() : null,
|
entity.getKiller() != null ? entity.getKiller().getItemInHand() : null,
|
||||||
killer,
|
killer,
|
||||||
loot,
|
loot,
|
||||||
@ -432,6 +432,9 @@ public class LootablesManager {
|
|||||||
.setMaterial(CompatibleMaterial.ROTTEN_FLESH)
|
.setMaterial(CompatibleMaterial.ROTTEN_FLESH)
|
||||||
.setMin(0)
|
.setMin(0)
|
||||||
.setMax(2).build(),
|
.setMax(2).build(),
|
||||||
|
new LootBuilder()
|
||||||
|
.setMaterial(CompatibleMaterial.ZOMBIE_HEAD)
|
||||||
|
.setRequireCharged(true).build(),
|
||||||
new LootBuilder()
|
new LootBuilder()
|
||||||
.setChance(2.5)
|
.setChance(2.5)
|
||||||
.setChildDropCount(1)
|
.setChildDropCount(1)
|
||||||
@ -619,7 +622,10 @@ public class LootablesManager {
|
|||||||
new LootBuilder()
|
new LootBuilder()
|
||||||
.setMaterial(CompatibleMaterial.BONE)
|
.setMaterial(CompatibleMaterial.BONE)
|
||||||
.setMin(0)
|
.setMin(0)
|
||||||
.setMax(2).build()));
|
.setMax(2).build(),
|
||||||
|
new LootBuilder()
|
||||||
|
.setMaterial(CompatibleMaterial.SKELETON_SKULL)
|
||||||
|
.setRequireCharged(true).build()));
|
||||||
|
|
||||||
// Add Snowman.
|
// Add Snowman.
|
||||||
lootManager.addLootable(new Lootable("SNOWMAN",
|
lootManager.addLootable(new Lootable("SNOWMAN",
|
||||||
|
Loading…
Reference in New Issue
Block a user