Skip to content

Commit

Permalink
Town Centers
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Dec 11, 2024
1 parent ba517b5 commit 3b04a6d
Show file tree
Hide file tree
Showing 17 changed files with 317 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,35 @@
"rules": [
{
"input_predicate": {
"block": "minecraft:stone",
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.5
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:mossy_stone"
"Name": "biomeswevegone:rocky_stone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.5
"probability": 0.15
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:cobblestone"
}
},
{
"input_predicate": {
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.15
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
Expand All @@ -134,13 +147,13 @@
"input_predicate": {
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.5
"probability": 0.05
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:mossy_stone_bricks"
"Name": "minecraft:chiseled_stone_bricks"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
{
"processors": [
{
"processor_type": "minecraft:rule",
"rules": [
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.5
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:dirt_path"
}
}
]
},
{
"processor_type": "minecraft:rule",
"rules": [
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.2
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:grass_block",
"Properties": {
"snowy": "false"
}
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.2
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:lush_grass_block",
"Properties": {
"snowy": "false"
}
}
}
]
},
{
"processor_type": "minecraft:rule",
"rules": [
{
"input_predicate": {
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:mossy_stone_bricks"
}
},
{
"input_predicate": {
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:cracked_stone_bricks"
}
},
{
"input_predicate": {
"block": "minecraft:stone_bricks",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:mossy_stone"
}
}
]
},
{
"processor_type": "minecraft:rule",
"rules": [
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:mossy_cobblestone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:mossy_stone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:rocky_stone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.15
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:cracked_stone_bricks"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.15
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:stone"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"processors": [
{
"processor_type": "minecraft:rule",
"rules": [
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:mossy_cobblestone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:mossy_stone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.3
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "biomeswevegone:rocky_stone"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.15
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:cracked_stone_bricks"
}
},
{
"input_predicate": {
"block": "minecraft:cobblestone",
"predicate_type": "minecraft:random_block_match",
"probability": 0.15
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
},
"output_state": {
"Name": "minecraft:stone"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,27 @@
"elements": [
{
"element": {
"element_type": "minecraft:legacy_single_pool_element",
"element_type": "minecraft:single_pool_element",
"location": "biomeswevegone:village/pumpkin_patch/town_centers/pumpkin_patch_meeting_point_1",
"processors": {
"processors": []
},
"processors": "biomeswevegone:pumpkin_patch_meeting_point_1",
"projection": "rigid"
},
"weight": 1
},
{
"element": {
"element_type": "minecraft:legacy_single_pool_element",
"element_type": "minecraft:single_pool_element",
"location": "biomeswevegone:village/pumpkin_patch/town_centers/pumpkin_patch_meeting_point_2",
"processors": {
"processors": []
},
"processors": "biomeswevegone:pumpkin_patch_meeting_point_2",
"projection": "rigid"
},
"weight": 1
},
{
"element": {
"element_type": "minecraft:legacy_single_pool_element",
"element_type": "minecraft:single_pool_element",
"location": "biomeswevegone:village/pumpkin_patch/town_centers/pumpkin_patch_meeting_point_3",
"processors": {
"processors": []
},
"processors": "biomeswevegone:pumpkin_patch_house",
"projection": "rigid"
},
"weight": 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ public class BWGVillageTemplatePools {

public static final ResourceKey<StructureTemplatePool> PUMPKIN_PATCH_TOWN_CENTERS = register("pumpkin_patch/town_centers", templatePoolFactoryContext ->
createTemplatePool(getEmptyPool(templatePoolFactoryContext), ImmutableList.of(
legacyPoolElement("pumpkin_patch/town_centers/pumpkin_patch_meeting_point_1"),
legacyPoolElement("pumpkin_patch/town_centers/pumpkin_patch_meeting_point_2"),
legacyPoolElement("pumpkin_patch/town_centers/pumpkin_patch_meeting_point_3")
singlePoolElement("pumpkin_patch/town_centers/pumpkin_patch_meeting_point_1", templatePoolFactoryContext, BWGStructureProcessorLists.PUMPKIN_PATCH_MEETING_POINT_1),
singlePoolElement("pumpkin_patch/town_centers/pumpkin_patch_meeting_point_2", templatePoolFactoryContext, BWGStructureProcessorLists.PUMPKIN_PATCH_MEETING_POINT_2),
singlePoolElement("pumpkin_patch/town_centers/pumpkin_patch_meeting_point_3", templatePoolFactoryContext, BWGStructureProcessorLists.PUMPKIN_PATCH_HOUSE)
), StructureTemplatePool.Projection.RIGID));

private static final ResourceKey<StructureTemplatePool> PUMPKIN_PATCH_DECOR = register("pumpkin_patch/decor", templatePoolFactoryContext ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,31 @@ protected static RuleProcessor lushDirtToCoarseDirt(float chance) {
createAlwaysTrueRandomBlockMatchTest(Blocks.STONE_BRICKS, 0.3f, BWGBlocks.MOSSY_STONE_SET.getBase())
);

protected static final RuleProcessor STONEBRICKS_MORE_VARIANTS = createRuleProcessor(
createAlwaysTrueRandomBlockMatchTest(Blocks.STONE_BRICKS, 0.3f, BWGBlocks.ROCKY_STONE_SET.getBase()),
createAlwaysTrueRandomBlockMatchTest(Blocks.STONE_BRICKS, 0.15f, Blocks.COBBLESTONE),
createAlwaysTrueRandomBlockMatchTest(Blocks.STONE_BRICKS, 0.15f, Blocks.MOSSY_COBBLESTONE),
createAlwaysTrueRandomBlockMatchTest(Blocks.STONE_BRICKS, 0.05f, Blocks.CHISELED_STONE_BRICKS)
);

protected static final RuleProcessor COBBLESTONE_VARIANTS = createRuleProcessor(
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.3f, Blocks.MOSSY_COBBLESTONE),
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.3f, BWGBlocks.MOSSY_STONE_SET.getBase()),
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.3f, BWGBlocks.ROCKY_STONE_SET.getBase()),
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.15f, Blocks.CRACKED_STONE_BRICKS),
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.15f, Blocks.STONE)
);

protected static final RuleProcessor COBBLESTONE_50_PERCENT_DIRT_PATH = createRuleProcessor(
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.5f, Blocks.DIRT_PATH)
);

protected static final RuleProcessor COBBLESTONE_20_PERCENT_GRASS = createRuleProcessor(
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.2f, Blocks.GRASS_BLOCK),
createAlwaysTrueRandomBlockMatchTest(Blocks.COBBLESTONE, 0.2f, BWGBlocks.LUSH_GRASS_BLOCK.get())
);


protected static final RuleProcessor PODZOL_25_PERCENT_COARSE_DIRT = createRuleProcessor(
createAlwaysTrueRandomBlockMatchTest(Blocks.PODZOL, 0.25f, Blocks.COARSE_DIRT)
);
Expand Down
Loading

0 comments on commit 3b04a6d

Please sign in to comment.