Skip to content

Commit

Permalink
Merge pull request #164 from moonfather1/switchboard
Browse files Browse the repository at this point in the history
Configurability galore
  • Loading branch information
Alatyami authored Oct 21, 2024
2 parents cdca8a2 + 363dea0 commit a66fd7f
Show file tree
Hide file tree
Showing 115 changed files with 1,538 additions and 325 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"entries": [
"growthcraft:thistle_seeds_from_grass",
"growthcraft:add_loot_village",
"growthcraft:hops_seeds_white_from_grass",
"growthcraft:add_loot_buried_treasure",
"growthcraft:yeast_bayanus_from_grass",
"growthcraft:add_loot_pillager_outpost",
"growthcraft:add_loot_shipwreck",
"growthcraft:bee_from_vanilla_bee_nest",
"growthcraft:grape_seeds_red_from_grass",
"growthcraft:rice_from_grass_wet",
"growthcraft:yeast_lager_from_snow",
"growthcraft:add_loot_woodland_mansion",
"growthcraft:grape_seeds_white_from_grass",
"growthcraft:hops_seeds_from_grass",
"growthcraft:add_loot_stronghold",
"growthcraft:grape_seeds_purple_from_grass",
"growthcraft:yeast_brewers_from_grass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{
"block": "minecraft:bee_nest",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "apiary"
}
],
"item": "growthcraft_apiary:bee"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"type": "growthcraft:add_item",
"type": "growthcraft:add_item_replacing_seeds",
"conditions": [
{
"chance": 0.2,
"chance": 0.1,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "grapes"
}
],
"item": "growthcraft_cellar:grape_seeds_purple"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"type": "growthcraft:add_item",
"type": "growthcraft:add_item_replacing_seeds",
"conditions": [
{
"chance": 0.2,
"chance": 0.1,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "grapes"
}
],
"item": "growthcraft_cellar:grape_seeds_red"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"type": "growthcraft:add_item",
"type": "growthcraft:add_item_replacing_seeds",
"conditions": [
{
"chance": 0.2,
"chance": 0.1,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "grapes"
}
],
"item": "growthcraft_cellar:grape_seeds_white"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"type": "growthcraft:add_item",
"conditions": [
{
"chance": 0.2,
"chance": 0.07,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "cellar"
}
],
"item": "growthcraft_cellar:hops_seeds"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@
"type": "growthcraft:add_item",
"conditions": [
{
"chance": 0.2,
"chance": 0.005,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
"condition": "minecraft:any_of",
"terms": [
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"block": "minecraft:tall_grass",
"condition": "minecraft:block_state_property"
}
]
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "rice"
}
],
"item": "growthcraft_rice:rice_grains"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"type": "growthcraft:weighted_seed_replacer",
"conditions": [
{
"condition": "minecraft:any_of",
"terms": [
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"block": "minecraft:tall_grass",
"condition": "minecraft:block_state_property"
}
]
},
{
"condition": "minecraft:any_of",
"terms": [
{
"biome_tag": "forge:is_swamp",
"condition": "growthcraft:biome_loot_check"
},
{
"biome_tag": "minecraft:is_river",
"condition": "growthcraft:biome_loot_check"
}
]
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "rice"
}
],
"item": "growthcraft_rice:rice_grains",
"percent_to_replace": 30,
"percent_to_void": 55
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"type": "growthcraft:add_item",
"type": "growthcraft:add_item_replacing_seeds",
"conditions": [
{
"chance": 0.2,
"chance": 0.15,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"biome_tag": "forge:is_cold/overworld",
"condition": "growthcraft:biome_loot_check"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "milk"
}
],
"item": "growthcraft_milk:thistle_seed"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "growthcraft:add_item",
"type": "growthcraft:add_item_replacing_seeds",
"conditions": [
{
"chance": 0.1,
Expand All @@ -8,6 +8,10 @@
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "cellar"
}
],
"item": "growthcraft_cellar:yeast_bayanus"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "growthcraft:add_item",
"type": "growthcraft:add_item_replacing_seeds",
"conditions": [
{
"chance": 0.1,
Expand All @@ -8,6 +8,10 @@
{
"block": "minecraft:grass",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "cellar"
}
],
"item": "growthcraft_cellar:yeast_brewers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"type": "growthcraft:add_item",
"conditions": [
{
"chance": 0.4,
"chance": 0.2,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:chorus_flower",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "cellar"
}
],
"item": "growthcraft_cellar:yeast_ethereal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"type": "growthcraft:add_item",
"conditions": [
{
"chance": 0.2,
"chance": 0.1,
"condition": "minecraft:random_chance"
},
{
"block": "minecraft:snow",
"condition": "minecraft:block_state_property"
},
{
"condition": "growthcraft:module_loaded_loot_check",
"module": "cellar"
}
],
"item": "growthcraft_cellar:yeast_lager"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"placement": [
{
"type": "minecraft:count",
"count": 50
"count": 10
},
{
"type": "minecraft:in_square"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"placement": [
{
"type": "minecraft:count",
"count": 50
"count": 10
},
{
"type": "minecraft:in_square"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"placement": [
{
"type": "minecraft:count",
"count": 50
"count": 10
},
{
"type": "minecraft:in_square"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"items": [
"minecraft:bamboo_planks"
]
},
{
"items": [
"minecraft:bamboo_mosaic"
]
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"conditions": [
{
"type": "growthcraft:feature_enabled",
"feature": "apiary"
}
],
"group": "growthcraft_apiary",
"key": {
"B": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"group": "growthcraft_bamboo",
"conditions": [
{
"type": "growthcraft:feature_enabled",
"feature": "apiary"
}
],
"group": "growthcraft_apiary",
"key": {
"B": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"conditions": [
{
"type": "growthcraft:feature_enabled",
"feature": "apiary"
}
],
"group": "growthcraft_apiary",
"key": {
"B": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"conditions": [
{
"type": "growthcraft:feature_enabled",
"feature": "apiary"
}
],
"group": "growthcraft_apiary",
"key": {
"B": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"conditions": [
{
"type": "growthcraft:feature_enabled",
"feature": "apiary"
}
],
"group": "growthcraft_apiary",
"key": {
"B": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"conditions": [
{
"type": "growthcraft:feature_enabled",
"feature": "apiary"
}
],
"group": "growthcraft_apiary",
"key": {
"B": {
Expand Down
Loading

0 comments on commit a66fd7f

Please sign in to comment.