Made carrots and potatoes twice as frequent

This commit is contained in:
alisolarflare 2016-12-09 22:45:16 -05:00
parent 61d5c82efc
commit 774b943f1c

View file

@ -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: