Skip to content

Commit 386bc54

Browse files
committed
increase odds of flowers in plains and forest
1 parent 77409fa commit 386bc54

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

Diff for: src/jfcraft/biome/BiomeForest.java

+11-6
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@ public byte getID() {
1616
}
1717

1818
private static final int TREE_ODDS = 50;
19-
private static final int FLOWER_CHUNK_ODDS = 100;
20-
private static final int FLOWER_BLOCK_ODDS = 100;
21-
private static final int TALLGRASS_CHUNK_ODDS = 100;
22-
private static final int TALLGRASS_BLOCK_ODDS = 100;
23-
private static final int ANIMAL_CHUNK_ODDS = 100;
24-
private static final int ANIMAL_BLOCK_ODDS = 100;
19+
private static final int WEEDS_ODDS = 30;
20+
private static final int FLOWER_CHUNK_ODDS = 9;
21+
private static final int FLOWER_BLOCK_ODDS = 20;
22+
private static final int TALLGRASS_CHUNK_ODDS = 5;
23+
private static final int TALLGRASS_BLOCK_ODDS = 30;
24+
private static final int ANIMAL_CHUNK_ODDS = 10;
25+
private static final int ANIMAL_BLOCK_ODDS = 30;
2526

2627
public void build(int x,int y,int z, BiomeData data) {
2728
if (canPlantOn(x, y, z)) {
2829
if (data.b1 % TREE_ODDS == 0) {
2930
getTree(data.b2).plant(x, y+1, z, data);
3031
return;
3132
}
33+
if (data.b2 % WEEDS_ODDS == 0) {
34+
setBlock(x,y+1,z,Blocks.WEEDS,0,0);
35+
return;
36+
}
3237
if (data.c1 % FLOWER_CHUNK_ODDS == 0) {
3338
if (data.b1 % FLOWER_BLOCK_ODDS == 0) {
3439
setBlock(x,y+1,z,Blocks.FLOWER,0,getFlower(data.c2));

Diff for: src/jfcraft/biome/BiomePlains.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ public byte getID() {
1717

1818
private static final int TREE_ODDS = 2000;
1919
private static final int WEEDS_ODDS = 20;
20-
private static final int FLOWER_CHUNK_ODDS = 30;
21-
private static final int FLOWER_BLOCK_ODDS = 25;
20+
private static final int FLOWER_CHUNK_ODDS = 7;
21+
private static final int FLOWER_BLOCK_ODDS = 15;
2222
private static final int TALLGRASS_CHUNK_ODDS = 3;
2323
private static final int TALLGRASS_BLOCK_ODDS = 25;
2424
private static final int ANIMAL_CHUNK_ODDS = 10;
25-
private static final int ANIMAL_BLOCK_ODDS = 50;
25+
private static final int ANIMAL_BLOCK_ODDS = 30;
2626

2727
public void build(int x,int y,int z, BiomeData data) {
2828
if (canPlantOn(x, y, z)) {

0 commit comments

Comments
 (0)