Made carrots and potatoes twice as frequent
This commit is contained in:
parent
61d5c82efc
commit
774b943f1c
1 changed files with 8 additions and 6 deletions
|
@ -25,20 +25,22 @@ public class GrassBreakListener implements Listener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch((int) (Math.random()* 60)){
|
switch((int) (Math.random()* 70)){
|
||||||
case 1: // 1% chance
|
case 1:
|
||||||
|
case 2:
|
||||||
world.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
world.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
||||||
break;
|
break;
|
||||||
case 2: // 1% chance
|
case 3: // 1% chance
|
||||||
world.dropItem(location, new ItemStack(Material.BEETROOT_SEEDS));
|
world.dropItem(location, new ItemStack(Material.BEETROOT_SEEDS));
|
||||||
break;
|
break;
|
||||||
case 3: // 1% chance
|
case 4:
|
||||||
|
case 7:
|
||||||
world.dropItem(location, new ItemStack(Material.POTATO_ITEM));
|
world.dropItem(location, new ItemStack(Material.POTATO_ITEM));
|
||||||
break;
|
break;
|
||||||
case 4: // 1% chance
|
case 5: // 1% chance
|
||||||
world.dropItem(location, new ItemStack(Material.FEATHER));
|
world.dropItem(location, new ItemStack(Material.FEATHER));
|
||||||
break;
|
break;
|
||||||
case 5: // 1% chance
|
case 6: // 1% chance
|
||||||
world.dropItem(location, new ItemStack(Material.YELLOW_FLOWER));
|
world.dropItem(location, new ItemStack(Material.YELLOW_FLOWER));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue