From 774b943f1c5d6a7504658a054d30e85b57badc9e Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Fri, 9 Dec 2016 22:45:16 -0500 Subject: [PATCH] Made carrots and potatoes twice as frequent --- .../components/fruit/GrassBreakListener.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/alisolarflare/components/fruit/GrassBreakListener.java b/src/alisolarflare/components/fruit/GrassBreakListener.java index 6ae4836..fb7f1c1 100644 --- a/src/alisolarflare/components/fruit/GrassBreakListener.java +++ b/src/alisolarflare/components/fruit/GrassBreakListener.java @@ -25,20 +25,22 @@ public class GrassBreakListener implements Listener { } } - switch((int) (Math.random()* 60)){ - case 1: // 1% chance + switch((int) (Math.random()* 70)){ + case 1: + case 2: world.dropItem(location, new ItemStack(Material.CARROT_ITEM)); break; - case 2: // 1% chance + case 3: // 1% chance world.dropItem(location, new ItemStack(Material.BEETROOT_SEEDS)); break; - case 3: // 1% chance + case 4: + case 7: world.dropItem(location, new ItemStack(Material.POTATO_ITEM)); break; - case 4: // 1% chance + case 5: // 1% chance world.dropItem(location, new ItemStack(Material.FEATHER)); break; - case 5: // 1% chance + case 6: // 1% chance world.dropItem(location, new ItemStack(Material.YELLOW_FLOWER)); break; default: