mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Herbalism double drop updates
This commit is contained in:
parent
5b3c176192
commit
0f41381c98
@ -213,6 +213,13 @@ public class Herbalism
|
||||
if(Math.random() * 1000 <= PP.getSkillLevel(SkillType.HERBALISM))
|
||||
{
|
||||
m.mcDropItem(loc, is);
|
||||
m.mcDropItem(loc, is);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -317,12 +324,23 @@ public class Herbalism
|
||||
if(type == 103)
|
||||
{
|
||||
mat = Material.getMaterial(360);
|
||||
int slices = (int) ((Math.random() + 3) + (int)(Math.random() * 4)); //drop 3-7 melon slices rather than melon blocks
|
||||
is = new ItemStack(mat, slices, (byte)0, (byte)0);
|
||||
|
||||
if(Math.random() * 1000 <= PP.getSkillLevel(SkillType.HERBALISM))
|
||||
is = new ItemStack(mat, 1, (byte)0, (byte)0);
|
||||
if(player != null)
|
||||
{
|
||||
m.mcDropItem(loc, is);
|
||||
if(Math.random() * 1000 <= PP.getSkillLevel(SkillType.HERBALISM))
|
||||
{
|
||||
m.mcDropItem(loc, is);
|
||||
m.mcDropItem(loc, is);
|
||||
m.mcDropItem(loc, is);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
if(Math.random() * 10 > 5)
|
||||
m.mcDropItem(loc, item);
|
||||
}
|
||||
}
|
||||
PP.addXP(SkillType.HERBALISM, LoadProperties.mmelon, player);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user