Reduced rarity a little
This commit is contained in:
parent
1253b6cc9f
commit
61d5c82efc
1 changed files with 3 additions and 3 deletions
|
@ -19,13 +19,13 @@ public class GrassBreakListener implements Listener {
|
||||||
Location location = event.getBlock().getLocation();
|
Location location = event.getBlock().getLocation();
|
||||||
World world = event.getBlock().getWorld();
|
World world = event.getBlock().getWorld();
|
||||||
|
|
||||||
/*
|
|
||||||
if (Math.random() > 0.05){
|
if (Math.random() > 0.05){
|
||||||
switch(world.getBiome(location.getBlockX(), location.getBlockZ())){
|
switch(world.getBiome(location.getBlockX(), location.getBlockZ())){
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
switch((int) (Math.random()* 100)){
|
switch((int) (Math.random()* 60)){
|
||||||
case 1: // 1% chance
|
case 1: // 1% chance
|
||||||
world.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
world.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue