-UberforstPluginReplaced:
+UberForestPluginReplaced:
type: world
debug: false
+ constants:
+ possible materials:
+ - m@sapling
+ - m@spruce_sapling
+ - m@birch_sapling
+ - m@jungle_sapling
+ - m@acacia_sapling
+ - m@darkoak_sapling
events:
on structure grows:
- - if <context.location.add[<util.random.int[1].to[10]>,0,<util.random.int[1].to[10]>].light.sky> == 15 {
- - random {
+ - if <context.location.add[<util.random.int[1].to[10]>,1,<util.random.int[1].to[10]>].light.sky> == 15 {
+ - modifyblock <context.location.find.surface_blocks[m@grass|m@dirt|m@dirt,2].within[5].random.add[0,1,0]> <script.constant[possible_materials].random>
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> oak_sapling
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [oak_sapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [treesapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [logsapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [trunksapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [woodsapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [oaklogsapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [oaktrunksapling]
- - modifyblock <context.location.find.surface_blocks[GRASS|DIRT|DIRT,2].within[5.0]> [oakwoodsapling]
- }
}