@@ -16,19 +16,24 @@ public byte getID() {
16
16
}
17
17
18
18
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 ;
25
26
26
27
public void build (int x ,int y ,int z , BiomeData data ) {
27
28
if (canPlantOn (x , y , z )) {
28
29
if (data .b1 % TREE_ODDS == 0 ) {
29
30
getTree (data .b2 ).plant (x , y +1 , z , data );
30
31
return ;
31
32
}
33
+ if (data .b2 % WEEDS_ODDS == 0 ) {
34
+ setBlock (x ,y +1 ,z ,Blocks .WEEDS ,0 ,0 );
35
+ return ;
36
+ }
32
37
if (data .c1 % FLOWER_CHUNK_ODDS == 0 ) {
33
38
if (data .b1 % FLOWER_BLOCK_ODDS == 0 ) {
34
39
setBlock (x ,y +1 ,z ,Blocks .FLOWER ,0 ,getFlower (data .c2 ));
0 commit comments