Reset to default-ish
This commit is contained in:
parent
774b943f1c
commit
7b91375133
1 changed files with 5 additions and 11 deletions
|
@ -20,27 +20,21 @@ public class GrassBreakListener implements Listener {
|
||||||
World world = event.getBlock().getWorld();
|
World world = event.getBlock().getWorld();
|
||||||
|
|
||||||
|
|
||||||
if (Math.random() > 0.05){
|
|
||||||
switch(world.getBiome(location.getBlockX(), location.getBlockZ())){
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch((int) (Math.random()* 70)){
|
switch((int) (Math.random()* 50)){
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
|
||||||
world.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
world.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
||||||
break;
|
break;
|
||||||
case 3: // 1% chance
|
case 2:
|
||||||
world.dropItem(location, new ItemStack(Material.BEETROOT_SEEDS));
|
world.dropItem(location, new ItemStack(Material.BEETROOT_SEEDS));
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
case 7:
|
|
||||||
world.dropItem(location, new ItemStack(Material.POTATO_ITEM));
|
world.dropItem(location, new ItemStack(Material.POTATO_ITEM));
|
||||||
break;
|
break;
|
||||||
case 5: // 1% chance
|
case 4:
|
||||||
world.dropItem(location, new ItemStack(Material.FEATHER));
|
world.dropItem(location, new ItemStack(Material.FEATHER));
|
||||||
break;
|
break;
|
||||||
case 6: // 1% chance
|
case 5:
|
||||||
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