Updated DataGen

This commit is contained in:
Frank 2023-04-13 18:37:33 +02:00
parent c5a8086eb4
commit 35f62b16af
45 changed files with 1847 additions and 39 deletions

View file

@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_cauldron"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_cauldron"
]
}
}

View file

@ -0,0 +1,43 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_minecraft_planks": {
"conditions": {
"items": [
{
"tag": "minecraft:planks"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_shield"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_tag_minecraft_planks",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_shield"
]
}
}

View file

@ -0,0 +1,45 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_shulker_shell": {
"conditions": {
"items": [
{
"items": [
"minecraft:shulker_shell"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_c_chest": {
"conditions": {
"items": [
{
"tag": "c:chest"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_shulker_box"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_chest",
"has_shulker_shell",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_shulker_box"
]
}
}

View file

@ -0,0 +1,43 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_minecraft_planks": {
"conditions": {
"items": [
{
"tag": "minecraft:planks"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_smith_table"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_tag_minecraft_planks",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_smith_table"
]
}
}

View file

@ -0,0 +1,45 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_stone": {
"conditions": {
"items": [
{
"items": [
"minecraft:stone"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_stonecutter"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_stone",
"has_tag_c_iron_ingots",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_stonecutter"
]
}
}

View file

@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_bucket"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_bucket"
]
}
}

View file

@ -0,0 +1,43 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tag_c_chest": {
"conditions": {
"items": [
{
"tag": "c:chest"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_hopper"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_chest",
"has_tag_c_iron_ingots",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_hopper"
]
}
}

View file

@ -0,0 +1,69 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_cobblestone": {
"conditions": {
"items": [
{
"items": [
"minecraft:cobblestone"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_redstone": {
"conditions": {
"items": [
{
"items": [
"minecraft:redstone"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_minecraft_planks": {
"conditions": {
"items": [
{
"tag": "minecraft:planks"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_piston"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_cobblestone",
"has_tag_c_iron_ingots",
"has_redstone",
"has_tag_minecraft_planks",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_piston"
]
}
}

View file

@ -0,0 +1,45 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_redstone": {
"conditions": {
"items": [
{
"items": [
"minecraft:redstone"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_compass"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_redstone",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_compass"
]
}
}

View file

@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_minecart"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_minecart"
]
}
}

View file

@ -0,0 +1,45 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_stick": {
"conditions": {
"items": [
{
"items": [
"minecraft:stick"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_tag_c_iron_ingots": {
"conditions": {
"items": [
{
"tag": "c:iron_ingots"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "bclib:tag_rail"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_tag_c_iron_ingots",
"has_stick",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"bclib:tag_rail"
]
}
}

View file

@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "c:iron_ingots"
}
},
"pattern": [
"I I",
" I "
],
"result": {
"item": "minecraft:bucket"
},
"show_notification": true
}

View file

@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "c:iron_ingots"
}
},
"pattern": [
"I I",
"I I",
"III"
],
"result": {
"item": "minecraft:cauldron"
},
"show_notification": true
}

View file

@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"D": {
"item": "minecraft:redstone"
},
"I": {
"tag": "c:iron_ingots"
}
},
"pattern": [
" I ",
"IDI",
" I "
],
"result": {
"item": "minecraft:compass"
},
"show_notification": true
}

View file

@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "redstone",
"key": {
"C": {
"tag": "c:chest"
},
"I": {
"tag": "c:iron_ingots"
}
},
"pattern": [
"I I",
"ICI",
" I "
],
"result": {
"item": "minecraft:hopper"
},
"show_notification": true
}

View file

@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "c:iron_ingots"
}
},
"pattern": [
"I I",
"III"
],
"result": {
"item": "minecraft:minecart"
},
"show_notification": true
}

View file

@ -0,0 +1,27 @@
{
"type": "minecraft:crafting_shaped",
"category": "redstone",
"key": {
"C": {
"item": "minecraft:cobblestone"
},
"D": {
"item": "minecraft:redstone"
},
"I": {
"tag": "c:iron_ingots"
},
"W": {
"tag": "minecraft:planks"
}
},
"pattern": [
"WWW",
"CIC",
"CDC"
],
"result": {
"item": "minecraft:piston"
},
"show_notification": true
}

View file

@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "c:iron_ingots"
},
"S": {
"item": "minecraft:stick"
}
},
"pattern": [
"I I",
"ISI",
"I I"
],
"result": {
"count": 16,
"item": "minecraft:rail"
},
"show_notification": true
}

View file

@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"I": {
"tag": "c:iron_ingots"
},
"W": {
"tag": "minecraft:planks"
}
},
"pattern": [
"WIW",
"WWW",
" W "
],
"result": {
"item": "minecraft:shield"
},
"show_notification": true
}

View file

@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"C": {
"tag": "c:chest"
},
"S": {
"item": "minecraft:shulker_shell"
}
},
"pattern": [
"S",
"C",
"S"
],
"result": {
"item": "minecraft:shulker_box"
},
"show_notification": true
}

View file

@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"#": {
"tag": "minecraft:planks"
},
"I": {
"tag": "c:iron_ingots"
}
},
"pattern": [
"II",
"##",
"##"
],
"result": {
"item": "minecraft:smithing_table"
},
"show_notification": true
}

View file

@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "c:iron_ingots"
},
"S": {
"item": "minecraft:stone"
}
},
"pattern": [
" I ",
"SSS"
],
"result": {
"item": "minecraft:stonecutter"
},
"show_notification": true
}

View file

@ -0,0 +1,737 @@
{
"aquifers_enabled": false,
"default_block": {
"Name": "minecraft:netherrack"
},
"default_fluid": {
"Name": "minecraft:lava",
"Properties": {
"level": "0"
}
},
"disable_mob_generation": false,
"legacy_random_source": true,
"noise": {
"height": 256,
"min_y": 0,
"size_horizontal": 1,
"size_vertical": 4
},
"noise_router": {
"barrier": 0.0,
"continents": 0.0,
"depth": 0.0,
"erosion": 0.0,
"final_density": {
"type": "minecraft:squeeze",
"argument": {
"type": "minecraft:mul",
"argument1": 0.64,
"argument2": {
"type": "minecraft:interpolated",
"argument": {
"type": "minecraft:blend_density",
"argument": {
"type": "minecraft:add",
"argument1": 2.5,
"argument2": {
"type": "minecraft:mul",
"argument1": {
"type": "minecraft:y_clamped_gradient",
"from_value": 0.0,
"from_y": -8,
"to_value": 1.0,
"to_y": 24
},
"argument2": {
"type": "minecraft:add",
"argument1": -2.5,
"argument2": {
"type": "minecraft:add",
"argument1": 0.9375,
"argument2": {
"type": "minecraft:mul",
"argument1": {
"type": "minecraft:y_clamped_gradient",
"from_value": 1.0,
"from_y": 232,
"to_value": 0.0,
"to_y": 256
},
"argument2": {
"type": "minecraft:add",
"argument1": -0.9375,
"argument2": "minecraft:nether/base_3d_noise"
}
}
}
}
}
}
}
}
}
},
"fluid_level_floodedness": 0.0,
"fluid_level_spread": 0.0,
"initial_density_without_jaggedness": 0.0,
"lava": 0.0,
"ridges": 0.0,
"temperature": {
"type": "minecraft:shifted_noise",
"noise": "minecraft:temperature",
"shift_x": "minecraft:shift_x",
"shift_y": 0.0,
"shift_z": "minecraft:shift_z",
"xz_scale": 0.25,
"y_scale": 0.0
},
"vegetation": {
"type": "minecraft:shifted_noise",
"noise": "minecraft:vegetation",
"shift_x": "minecraft:shift_x",
"shift_y": 0.0,
"shift_z": "minecraft:shift_z",
"xz_scale": 0.25,
"y_scale": 0.0
},
"vein_gap": 0.0,
"vein_ridged": 0.0,
"vein_toggle": 0.0
},
"ore_veins_enabled": false,
"sea_level": 32,
"spawn_target": [],
"surface_rule": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:vertical_gradient",
"false_at_and_above": {
"above_bottom": 5
},
"random_name": "minecraft:bedrock_floor",
"true_at_and_below": {
"above_bottom": 0
}
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:bedrock"
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:vertical_gradient",
"false_at_and_above": {
"below_top": 0
},
"random_name": "minecraft:bedrock_roof",
"true_at_and_below": {
"below_top": 5
}
}
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:bedrock"
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": false,
"anchor": {
"below_top": 5
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:netherrack"
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:biome",
"biome_is": [
"minecraft:basalt_deltas"
]
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": true,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "ceiling"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:basalt",
"Properties": {
"axis": "y"
}
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": true,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "floor"
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": -0.012,
"noise": "minecraft:patch"
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 30
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 35
},
"surface_depth_multiplier": 0
}
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:gravel"
}
}
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 0.0,
"noise": "minecraft:nether_state_selector"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:basalt",
"Properties": {
"axis": "y"
}
}
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:blackstone"
}
}
]
}
}
]
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:biome",
"biome_is": [
"minecraft:soul_sand_valley"
]
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": true,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "ceiling"
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 0.0,
"noise": "minecraft:nether_state_selector"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:soul_sand"
}
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:soul_soil"
}
}
]
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": true,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "floor"
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": -0.012,
"noise": "minecraft:patch"
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 30
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 35
},
"surface_depth_multiplier": 0
}
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:gravel"
}
}
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 0.0,
"noise": "minecraft:nether_state_selector"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:soul_sand"
}
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:soul_soil"
}
}
]
}
}
]
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": false,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "floor"
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:y_above",
"add_stone_depth": false,
"anchor": {
"absolute": 32
},
"surface_depth_multiplier": 0
}
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:hole"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:lava",
"Properties": {
"level": "0"
}
}
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:biome",
"biome_is": [
"minecraft:warped_forest"
]
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 0.54,
"noise": "minecraft:netherrack"
}
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": false,
"anchor": {
"absolute": 31
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 1.17,
"noise": "minecraft:nether_wart"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:warped_wart_block"
}
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:warped_nylium"
}
}
]
}
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:biome",
"biome_is": [
"minecraft:crimson_forest"
]
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 0.54,
"noise": "minecraft:netherrack"
}
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": false,
"anchor": {
"absolute": 31
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": 1.17,
"noise": "minecraft:nether_wart"
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:nether_wart_block"
}
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:crimson_nylium"
}
}
]
}
}
}
}
]
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:biome",
"biome_is": [
"minecraft:nether_wastes"
]
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": true,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "floor"
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": -0.012,
"noise": "minecraft:soul_sand_layer"
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:hole"
}
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 30
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 35
},
"surface_depth_multiplier": 0
}
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:soul_sand"
}
}
}
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:netherrack"
}
}
]
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:stone_depth",
"add_surface_depth": false,
"offset": 0,
"secondary_depth_range": 0,
"surface_type": "floor"
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": false,
"anchor": {
"absolute": 31
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:y_above",
"add_stone_depth": true,
"anchor": {
"absolute": 35
},
"surface_depth_multiplier": 0
}
},
"then_run": {
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:noise_threshold",
"max_threshold": 1.7976931348623157E308,
"min_threshold": -0.012,
"noise": "minecraft:gravel_layer"
},
"then_run": {
"type": "minecraft:sequence",
"sequence": [
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:y_above",
"add_stone_depth": false,
"anchor": {
"absolute": 32
},
"surface_depth_multiplier": 0
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:gravel"
}
}
},
{
"type": "minecraft:condition",
"if_true": {
"type": "minecraft:not",
"invert": {
"type": "minecraft:hole"
}
},
"then_run": {
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:gravel"
}
}
}
]
}
}
}
}
}
]
}
},
{
"type": "minecraft:block",
"result_state": {
"Name": "minecraft:netherrack"
}
}
]
}
}

View file

@ -0,0 +1,55 @@
{
"dimensions": {
"minecraft:overworld": {
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"settings": "minecraft:amplified"
}
},
"minecraft:the_end": {
"type": "minecraft:the_end",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:end_biome_source",
"config": {
"barrens_biomes_size": 256,
"center_biomes_size": 256,
"generator_version": "paulevs",
"inner_void_radius_squared": 1048576,
"land_biomes_size": 256,
"map_type": "hex",
"void_biomes_size": 256,
"with_void_biomes": true
},
"seed": 0
},
"settings": "minecraft:end"
}
},
"minecraft:the_nether": {
"type": "minecraft:the_nether",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:nether_biome_source",
"config": {
"amplified": true,
"biome_size": 256,
"biome_size_vertical": 128,
"map_type": "hex",
"use_vertical_biomes": true
},
"seed": 0
},
"settings": "bclib:amplified_nether"
}
}
},
"sort_order": 1000
}

View file

@ -0,0 +1,55 @@
{
"dimensions": {
"minecraft:overworld": {
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"settings": "minecraft:large_biomes"
}
},
"minecraft:the_end": {
"type": "minecraft:the_end",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:end_biome_source",
"config": {
"barrens_biomes_size": 512,
"center_biomes_size": 256,
"generator_version": "paulevs",
"inner_void_radius_squared": 1048576,
"land_biomes_size": 1024,
"map_type": "hex",
"void_biomes_size": 512,
"with_void_biomes": true
},
"seed": 0
},
"settings": "minecraft:end"
}
},
"minecraft:the_nether": {
"type": "minecraft:the_nether",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:nether_biome_source",
"config": {
"amplified": false,
"biome_size": 1024,
"biome_size_vertical": 172,
"map_type": "hex",
"use_vertical_biomes": true
},
"seed": 0
},
"settings": "minecraft:nether"
}
}
},
"sort_order": 1000
}

View file

@ -0,0 +1,55 @@
{
"dimensions": {
"minecraft:overworld": {
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"settings": "minecraft:overworld"
}
},
"minecraft:the_end": {
"type": "minecraft:the_end",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:end_biome_source",
"config": {
"barrens_biomes_size": 256,
"center_biomes_size": 256,
"generator_version": "paulevs",
"inner_void_radius_squared": 1048576,
"land_biomes_size": 256,
"map_type": "square",
"void_biomes_size": 256,
"with_void_biomes": true
},
"seed": 0
},
"settings": "minecraft:end"
}
},
"minecraft:the_nether": {
"type": "minecraft:the_nether",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:nether_biome_source",
"config": {
"amplified": false,
"biome_size": 256,
"biome_size_vertical": 86,
"map_type": "square",
"use_vertical_biomes": true
},
"seed": 0
},
"settings": "minecraft:nether"
}
}
},
"sort_order": 1000
}

View file

@ -0,0 +1,55 @@
{
"dimensions": {
"minecraft:overworld": {
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"settings": "minecraft:overworld"
}
},
"minecraft:the_end": {
"type": "minecraft:the_end",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:end_biome_source",
"config": {
"barrens_biomes_size": 256,
"center_biomes_size": 256,
"generator_version": "paulevs",
"inner_void_radius_squared": 1048576,
"land_biomes_size": 256,
"map_type": "hex",
"void_biomes_size": 256,
"with_void_biomes": true
},
"seed": 0
},
"settings": "minecraft:end"
}
},
"minecraft:the_nether": {
"type": "minecraft:the_nether",
"generator": {
"type": "bclib:betterx",
"biome_source": {
"type": "bclib:nether_biome_source",
"config": {
"amplified": false,
"biome_size": 256,
"biome_size_vertical": 86,
"map_type": "hex",
"use_vertical_biomes": true
},
"seed": 0
},
"settings": "minecraft:nether"
}
}
},
"sort_order": 1000
}

View file

@ -0,0 +1,8 @@
{
"replace": false,
"values": [
"bclib:normal",
"bclib:amplified",
"bclib:large"
]
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:basalt_deltas",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_NETHER",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:crimson_forest",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_NETHER",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:end_barrens",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_END_BARRENS",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,11 @@
{
"type": "bclib:biome",
"biome": "minecraft:end_highlands",
"edge": "minecraft:end_midlands",
"edgeSize": 8,
"fogDensity": 1.0,
"genChance": 0.5,
"intended_for": "OTHER_END_LAND",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,11 @@
{
"type": "bclib:biome",
"parent": "minecraft:end_highlands",
"biome": "minecraft:end_midlands",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 0.5,
"intended_for": "OTHER_END_LAND",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:nether_wastes",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_NETHER",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:small_end_islands",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_END_VOID",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:soul_sand_valley",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_NETHER",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:the_end",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_END_CENTER",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:the_void",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "NONE",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -0,0 +1,10 @@
{
"type": "bclib:biome",
"biome": "minecraft:warped_forest",
"edgeSize": 0,
"fogDensity": 1.0,
"genChance": 1.0,
"intended_for": "OTHER_NETHER",
"terrainHeight": 0.1,
"vertical": false
}

View file

@ -9,6 +9,7 @@ import org.betterx.datagen.bclib.tests.TestBiomes;
import org.betterx.datagen.bclib.tests.TestConfiguredFeatures;
import org.betterx.datagen.bclib.tests.TestPlacedFeatures;
import org.betterx.datagen.bclib.tests.TestStructure;
import org.betterx.datagen.bclib.worldgen.BiomeDatagenProvider;
import org.betterx.datagen.bclib.worldgen.NoiseTypesDataProvider;
import org.betterx.datagen.bclib.worldgen.VanillaBCLBiomesDataProvider;
import org.betterx.worlds.together.WorldsTogether;
@ -59,7 +60,7 @@ public class BCLRegistrySupplier extends RegistrySupplier {
registries.add(Registries.PLACED_FEATURE, PlacedFeature.DIRECT_CODEC, TestPlacedFeatures::bootstrap);
registries.add(Registries.BIOME, Biome.DIRECT_CODEC, TestBiomes::bootstrap);
} else {
registries.addBootstrapOnly(Registries.BIOME, Biome.DIRECT_CODEC, TestBiomes::bootstrap);
registries.addBootstrapOnly(Registries.BIOME, Biome.DIRECT_CODEC, BiomeDatagenProvider::bootstrap);
}
registries.add(

View file

@ -2,9 +2,9 @@ package org.betterx.datagen.bclib;
import org.betterx.bclib.BCLib;
import org.betterx.datagen.bclib.advancement.BCLAdvancementDataProvider;
import org.betterx.datagen.bclib.advancement.RecipeDataProvider;
import org.betterx.datagen.bclib.preset.WorldPresetDataProvider;
import org.betterx.datagen.bclib.tests.TestBiomes;
import org.betterx.datagen.bclib.tests.TestRecipes;
import org.betterx.datagen.bclib.tests.TestWorldgenProvider;
import org.betterx.datagen.bclib.worldgen.BCLibRegistriesDataProvider;
@ -14,7 +14,7 @@ import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
public class BCLibDatagen implements DataGeneratorEntrypoint {
public static final boolean ADD_TESTS = true;
public static final boolean ADD_TESTS = false;
@Override
public void onInitializeDataGenerator(FabricDataGenerator dataGenerator) {
@ -24,9 +24,11 @@ public class BCLibDatagen implements DataGeneratorEntrypoint {
if (ADD_TESTS) {
pack.addProvider(TestWorldgenProvider::new);
pack.addProvider(TestBiomes::new);
pack.addProvider(TestRecipes::new);
RecipeDataProvider.createTestRecipes();
}
pack.addProvider(RecipeDataProvider::new);
pack.addProvider(WorldPresetDataProvider::new);
pack.addProvider(BCLibRegistriesDataProvider::new);
pack.addProvider(BCLAdvancementDataProvider::new);

View file

@ -0,0 +1,30 @@
package org.betterx.datagen.bclib.advancement;
import org.betterx.bclib.BCLib;
import org.betterx.bclib.recipes.BCLRecipeBuilder;
import org.betterx.worlds.together.WorldsTogether;
import net.minecraft.data.recipes.RecipeCategory;
import net.minecraft.world.item.Items;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import java.util.List;
public class RecipeDataProvider extends org.betterx.bclib.api.v3.datagen.RecipeDataProvider {
public RecipeDataProvider(FabricDataOutput output) {
super(List.of(BCLib.MOD_ID, WorldsTogether.MOD_ID), output);
}
public static void createTestRecipes() {
BCLRecipeBuilder
.crafting(BCLib.makeID("test_star"), Items.NETHER_STAR)
.setOutputCount(1)
.setShape("ggg", "glg", "ggg")
.addMaterial('g', Items.GLASS_PANE)
.addMaterial('l', Items.LAPIS_LAZULI)
.setCategory(RecipeCategory.TOOLS)
.build();
}
}

View file

@ -23,7 +23,7 @@ import java.util.concurrent.CompletableFuture;
public class TestBiomes extends TagDataProvider<Biome> {
static BCLBiomeContainer<BCLBiome> THE_YELLOW = BCLBiomeBuilder
.start(BCLib.makeID("the_yellow"))
.precipitation(Biome.Precipitation.NONE)
.hasPrecipitation(false)
.temperature(1.0f)
.wetness(1.0f)
.fogColor(0xFFFF00)
@ -38,7 +38,7 @@ public class TestBiomes extends TagDataProvider<Biome> {
static BCLBiomeContainer<BCLBiome> THE_BLUE = BCLBiomeBuilder
.start(BCLib.makeID("the_blue"))
.precipitation(Biome.Precipitation.NONE)
.hasPrecipitation(false)
.temperature(1.0f)
.wetness(1.0f)
.fogColor(0x0000FF)
@ -53,7 +53,7 @@ public class TestBiomes extends TagDataProvider<Biome> {
static BCLBiomeContainer<BCLBiome> THE_GRAY = BCLBiomeBuilder
.start(BCLib.makeID("the_gray"))
.precipitation(Biome.Precipitation.NONE)
.hasPrecipitation(false)
.temperature(1.0f)
.wetness(1.0f)
.fogColor(0xFFFFFF)
@ -66,7 +66,7 @@ public class TestBiomes extends TagDataProvider<Biome> {
.build();
static BCLBiomeContainer<BCLBiome> THE_ORANGE = BCLBiomeBuilder
.start(BCLib.makeID("the_orange"))
.precipitation(Biome.Precipitation.NONE)
.hasPrecipitation(false)
.temperature(1.0f)
.wetness(1.0f)
.fogColor(0xFF7700)
@ -79,7 +79,7 @@ public class TestBiomes extends TagDataProvider<Biome> {
.build();
static BCLBiomeContainer<BCLBiome> THE_PURPLE = BCLBiomeBuilder
.start(BCLib.makeID("the_purple"))
.precipitation(Biome.Precipitation.NONE)
.hasPrecipitation(false)
.temperature(1.0f)
.wetness(1.0f)
.fogColor(0xFF00FF)

View file

@ -1,30 +0,0 @@
package org.betterx.datagen.bclib.tests;
import org.betterx.bclib.BCLib;
import org.betterx.bclib.api.v3.datagen.RecipeDataProvider;
import org.betterx.bclib.recipes.BCLRecipeBuilder;
import org.betterx.bclib.recipes.CraftingRecipeBuilder;
import org.betterx.worlds.together.WorldsTogether;
import net.minecraft.data.recipes.RecipeCategory;
import net.minecraft.world.item.Items;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import java.util.List;
public class TestRecipes extends RecipeDataProvider {
public TestRecipes(FabricDataOutput output) {
super(List.of(BCLib.MOD_ID, WorldsTogether.MOD_ID), output);
}
final CraftingRecipeBuilder WONDER = BCLRecipeBuilder
.crafting(BCLib.makeID("test_star"), Items.NETHER_STAR)
.setOutputCount(1)
.setShape("ggg", "glg", "ggg")
.addMaterial('g', Items.GLASS_PANE)
.addMaterial('l', Items.LAPIS_LAZULI)
.setCategory(RecipeCategory.TOOLS)
.build();
}

View file

@ -0,0 +1,28 @@
package org.betterx.datagen.bclib.worldgen;
import org.betterx.bclib.BCLib;
import org.betterx.bclib.api.v3.datagen.TagDataProvider;
import org.betterx.worlds.together.WorldsTogether;
import org.betterx.worlds.together.tag.v3.TagManager;
import net.minecraft.core.HolderLookup;
import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.world.level.biome.Biome;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import java.util.List;
import java.util.concurrent.CompletableFuture;
public class BiomeDatagenProvider extends TagDataProvider<Biome> {
public BiomeDatagenProvider(
FabricDataOutput output,
CompletableFuture<HolderLookup.Provider> registriesFuture
) {
super(TagManager.BIOMES, List.of(BCLib.MOD_ID, WorldsTogether.MOD_ID, "c"), output, registriesFuture);
}
public static void bootstrap(BootstapContext<Biome> bootstrapContext) {
}
}