From 1a93e8b8818c738c995587176fd522d8ee40e15a Mon Sep 17 00:00:00 2001 From: Pyritie Date: Tue, 30 Sep 2025 23:58:49 +0100 Subject: [PATCH] mini versions of the mars trees for tree farms --- .../mars/tree/aeronos_mini.json | 99 +++++++++++++++++++ .../mars/tree/glacian_mini.json | 2 +- .../mars/tree/strophar_mini.json | 79 +++++++++++++++ kubejs/startup_scripts/tfg/blocks.plants.js | 4 +- 4 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 kubejs/data/tfg/worldgen/configured_feature/mars/tree/aeronos_mini.json create mode 100644 kubejs/data/tfg/worldgen/configured_feature/mars/tree/strophar_mini.json diff --git a/kubejs/data/tfg/worldgen/configured_feature/mars/tree/aeronos_mini.json b/kubejs/data/tfg/worldgen/configured_feature/mars/tree/aeronos_mini.json new file mode 100644 index 000000000..e242d1417 --- /dev/null +++ b/kubejs/data/tfg/worldgen/configured_feature/mars/tree/aeronos_mini.json @@ -0,0 +1,99 @@ +{ + "type": "minecraft:tree", + "config": { + "decorators": [], + "dirt_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:aeronos_stem" + } + }, + "foliage_placer": { + "type": "minecraft:blob_foliage_placer", + "offset": 3, + "height": 4, + "radius": 3 + }, + "foliage_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:aeronos_cap" + } + }, + "force_dirt": false, + "ignore_vines": true, + "minimum_size": { + "type": "minecraft:two_layers_feature_size", + "limit": 1, + "lower_size": 0, + "upper_size": 0 + }, + "trunk_placer": { + "type": "minecraft:cherry_trunk_placer", + "base_height": 4, + "height_rand_a": 2, + "height_rand_b": 4, + "branch_count": { + "type": "minecraft:uniform", + "value": { + "min_inclusive": 1, + "max_inclusive": 2 + } + }, + "branch_horizontal_length": { + "type": "minecraft:uniform", + "value": { + "min_inclusive": 4, + "max_inclusive": 6 + } + }, + "branch_start_offset_from_top": { + "min_inclusive": -8, + "max_inclusive": -3 + }, + "branch_end_offset_from_top": { + "type": "minecraft:uniform", + "value": { + "min_inclusive": 1, + "max_inclusive": 3 + } + } + }, + "trunk_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:aeronos_stem" + } + }, + "root_placer": { + "type": "minecraft:mangrove_root_placer", + "trunk_offset_y": 0, + "mangrove_root_placement": { + "max_root_width": 1, + "max_root_length": 1, + "random_skew_chance": 0.3, + "can_grow_through": "#minecraft:mangrove_logs_can_grow_through", + "muddy_roots_in": [ + "tfg:grass/mars_dirt", + "tfg:grass/amber_mycelium", + "tfg:grass/rusticus_mycelium", + "tfg:grass/sangnum_mycelium", + "ad_astra:mars_sand", + "ad_astra:venus_sand" + ], + "muddy_roots_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:aeronos_stem" + } + } + }, + "root_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:aeronos_stem" + } + } + } + } +} \ No newline at end of file diff --git a/kubejs/data/tfg/worldgen/configured_feature/mars/tree/glacian_mini.json b/kubejs/data/tfg/worldgen/configured_feature/mars/tree/glacian_mini.json index 3baea6d11..dd846367d 100644 --- a/kubejs/data/tfg/worldgen/configured_feature/mars/tree/glacian_mini.json +++ b/kubejs/data/tfg/worldgen/configured_feature/mars/tree/glacian_mini.json @@ -5,7 +5,7 @@ "tfg:trees/mossy_glowshroom_mini_1" ], "placement": { - "width": 4, + "width": 3, "height": 10, "allow_submerged": false, "allow_deeply_submerged": false diff --git a/kubejs/data/tfg/worldgen/configured_feature/mars/tree/strophar_mini.json b/kubejs/data/tfg/worldgen/configured_feature/mars/tree/strophar_mini.json new file mode 100644 index 000000000..bfc8f32f0 --- /dev/null +++ b/kubejs/data/tfg/worldgen/configured_feature/mars/tree/strophar_mini.json @@ -0,0 +1,79 @@ +{ + "type": "minecraft:tree", + "config": { + "decorators": [], + "dirt_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:strophar_stem" + } + }, + "foliage_placer": { + "type": "minecraft:acacia_foliage_placer", + "offset": 1, + "radius": { + "type": "minecraft:uniform", + "value": { + "min_inclusive": 2, + "max_inclusive": 4 + } + } + }, + "foliage_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:strophar_cap" + } + }, + "force_dirt": false, + "ignore_vines": true, + "minimum_size": { + "type": "minecraft:two_layers_feature_size", + "limit": 1, + "lower_size": 0, + "upper_size": 0 + }, + "trunk_placer": { + "type": "minecraft:forking_trunk_placer", + "base_height": 3, + "height_rand_a": 2, + "height_rand_b": 4 + }, + "trunk_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:strophar_stem" + } + }, + "root_placer": { + "type": "minecraft:mangrove_root_placer", + "trunk_offset_y": 0, + "mangrove_root_placement": { + "max_root_width": 1, + "max_root_length": 1, + "random_skew_chance": 0.2, + "can_grow_through": "#minecraft:mangrove_logs_can_grow_through", + "muddy_roots_in": [ + "tfg:grass/mars_dirt", + "tfg:grass/amber_mycelium", + "tfg:grass/rusticus_mycelium", + "tfg:grass/sangnum_mycelium", + "ad_astra:mars_sand", + "ad_astra:venus_sand" + ], + "muddy_roots_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:strophar_stem" + } + } + }, + "root_provider": { + "type": "minecraft:simple_state_provider", + "state": { + "Name": "ad_astra:strophar_stem" + } + } + } + } +} \ No newline at end of file diff --git a/kubejs/startup_scripts/tfg/blocks.plants.js b/kubejs/startup_scripts/tfg/blocks.plants.js index 2cf1bbd53..dffe16ff5 100644 --- a/kubejs/startup_scripts/tfg/blocks.plants.js +++ b/kubejs/startup_scripts/tfg/blocks.plants.js @@ -340,7 +340,7 @@ const registerTFGCrops = (event) => { .defaultCutout() event.create('tfg:saplings/strophar', 'tfc:sapling') - .features('tfg:mars/tree/strophar') + .features('tfg:mars/tree/strophar_mini') .tagBoth('minecraft:saplings') .tagBlock('tfg:do_not_destroy_in_space') .tagBlock('tfc:can_be_snow_piled') @@ -349,7 +349,7 @@ const registerTFGCrops = (event) => { .defaultCutout() event.create('tfg:saplings/aeronos', 'tfc:sapling') - .features('tfg:mars/tree/aeronos') + .features('tfg:mars/tree/aeronos_mini') .tagBoth('minecraft:saplings') .tagBlock('tfg:do_not_destroy_in_space') .tagBlock('tfc:can_be_snow_piled')