mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 16:38:33 +01:00
Made drop chances for wings, solid xp and cobweb more common
Closes #94
This commit is contained in:
parent
e20a82a4ad
commit
0454fc521b
1 changed files with 3 additions and 3 deletions
|
@ -30,21 +30,21 @@ public class LivingDropEvent{
|
||||||
if(event.getSource().getEntity() instanceof EntityPlayer){
|
if(event.getSource().getEntity() instanceof EntityPlayer){
|
||||||
//Drop Solidified XP
|
//Drop Solidified XP
|
||||||
if(event.getEntityLiving() instanceof EntityCreature){
|
if(event.getEntityLiving() instanceof EntityCreature){
|
||||||
if(Util.RANDOM.nextInt(15) <= 0){
|
if(Util.RANDOM.nextInt(10) <= 0){
|
||||||
event.getEntityLiving().entityDropItem(new ItemStack(InitItems.itemSolidifiedExperience, Util.RANDOM.nextInt(2)+1), 0);
|
event.getEntityLiving().entityDropItem(new ItemStack(InitItems.itemSolidifiedExperience, Util.RANDOM.nextInt(2)+1), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Drop Cobwebs from Spiders
|
//Drop Cobwebs from Spiders
|
||||||
if(ConfigBoolValues.DO_SPIDER_DROPS.isEnabled() && event.getEntityLiving() instanceof EntitySpider){
|
if(ConfigBoolValues.DO_SPIDER_DROPS.isEnabled() && event.getEntityLiving() instanceof EntitySpider){
|
||||||
if(Util.RANDOM.nextInt(80) <= 0){
|
if(Util.RANDOM.nextInt(20) <= 0){
|
||||||
event.getEntityLiving().entityDropItem(new ItemStack(Blocks.WEB, Util.RANDOM.nextInt(2)+1), 0);
|
event.getEntityLiving().entityDropItem(new ItemStack(Blocks.WEB, Util.RANDOM.nextInt(2)+1), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Drop Wings from Bats
|
//Drop Wings from Bats
|
||||||
if(ConfigBoolValues.DO_BAT_DROPS.isEnabled() && event.getEntityLiving() instanceof EntityBat){
|
if(ConfigBoolValues.DO_BAT_DROPS.isEnabled() && event.getEntityLiving() instanceof EntityBat){
|
||||||
if(Util.RANDOM.nextInt(30) <= 0){
|
if(Util.RANDOM.nextInt(15) <= 0){
|
||||||
event.getEntityLiving().entityDropItem(new ItemStack(InitItems.itemMisc, Util.RANDOM.nextInt(2)+1, TheMiscItems.BAT_WING.ordinal()), 0);
|
event.getEntityLiving().entityDropItem(new ItemStack(InitItems.itemMisc, Util.RANDOM.nextInt(2)+1, TheMiscItems.BAT_WING.ordinal()), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue