I understand how to make a mob drop items and all that, and I also understand how to create a method which allows them to drop 0-2 however, if I wanted to increase that rate, so like 0-10, meaning 1 out of 10. How would I do it? this is what I have now.
protected void dropFewItems(boolean par1, int par2)
{
int random = this.rand.nextInt(4) + this.rand.nextInt(1 + par2);
protected void dropFewItems(boolean par1, int par2)
{
int random = this.rand.nextInt(4) + this.rand.nextInt(1 + par2);
for (int k = 0; k < random; ++k)
{
if(k == 2){
this.dropItem(PhantasyRealmsItems.blade, 1);
}
else
if (k == 1){
this.dropItem(PhantasyRealmsItems.brand, 1);
}