Skip to content

Commit

Permalink
added Datagen for Recipes, Tags and LooTables
Browse files Browse the repository at this point in the history
  • Loading branch information
Hojosa committed Feb 18, 2024
1 parent 55d1f59 commit 7533a84
Show file tree
Hide file tree
Showing 484 changed files with 8,776 additions and 1,604 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ minecraft {

data {
workingDirectory project.file('run-data')
args '--mod', mod_id+',growthcraft_milk', '--all', '--output', file('src/generated/resources/'),
args '--mod', mod_id+',growthcraft_apiary'+',growthcraft_apples'+',growthcraft_bamboo'+',growthcraft_cellar'+',growthcraft_milk'+',growthcraft_rice', '--all', '--output', file('src/generated/resources/'),
'--existing', file('src/main/resources/'), '--flat'
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ org.gradle.daemon=false
# ------------------------------------------------
minecraft_version=1.20.1
minecraft_version_range=[1.20.1,1.21)
forge_version=47.2.0
forge_version=47.2.1
forge_version_range=47,)
loader_version_range=[47,)
mapping_channel=official
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"replace": false,
"values": [
"growthcraft:salt_ore",
"growthcraft:salt_ore_deepslate",
"growthcraft:salt_ore_nether",
"growthcraft:salt_ore_nether",
"growthcraft:salt_ore_end"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft:salt_ore_deepslate"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft:salt_ore_nether"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft:salt_ore"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft_rice:rice_stalk"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft:salt"
]
Expand Down
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/black.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_black"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/blue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_blue"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/brown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_brown"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/cyan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_cyan"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/gray.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_gray"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/green.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_green"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_light_blue"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_light_gray"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/lime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_lime"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_magenta"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_orange"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/pink.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_pink"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_purple"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/red.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_red"
]
}
5 changes: 5 additions & 0 deletions src/generated/resources/data/forge/tags/items/dyes/white.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_white"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"growthcraft_apiary:bees_wax_yellow"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"growthcraft_apples:apple_plank_fence_gate",
"growthcraft_bamboo:bamboo_plank_fence_gate"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft_cellar:grape_purple",
"growthcraft_cellar:grape_red",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft_cellar:grain",
"growthcraft_cellar:grain_amber",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft_rice:rice"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"replace": false,
"values": [
"growthcraft_cellar:grape_seeds_purple",
"growthcraft_cellar:grape_seeds_red",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_item": {
"conditions": {
"items": [
{
"items": [
"minecraft:lead"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "growthcraft:rope_linen"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_item",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"growthcraft:rope_linen"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_item": {
"conditions": {
"items": [
{
"items": [
"minecraft:lead"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "growthcraft:rope_linen_lengthen"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_item",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"growthcraft:rope_linen_lengthen"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_salt_block": {
"has_item": {
"conditions": {
"items": [
{
"items": [
"growthcraft:salt_block"
"growthcraft:salt"
]
}
]
Expand All @@ -22,13 +22,14 @@
},
"requirements": [
[
"has_salt_block",
"has_item",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"growthcraft:salt"
]
}
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_salt": {
"has_item": {
"conditions": {
"items": [
{
Expand All @@ -22,13 +22,14 @@
},
"requirements": [
[
"has_salt",
"has_item",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"growthcraft:salt_block"
]
}
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"items": [
{
"items": [
"minecraft:black_carpet"
"minecraft:iron_ingot"
]
}
]
Expand All @@ -30,5 +30,6 @@
"recipes": [
"growthcraft:crowbar_black"
]
}
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"items": [
{
"items": [
"minecraft:blue_carpet"
"minecraft:iron_ingot"
]
}
]
Expand All @@ -30,5 +30,6 @@
"recipes": [
"growthcraft:crowbar_blue"
]
}
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"items": [
{
"items": [
"minecraft:brown_carpet"
"minecraft:iron_ingot"
]
}
]
Expand All @@ -30,5 +30,6 @@
"recipes": [
"growthcraft:crowbar_brown"
]
}
},
"sends_telemetry_event": false
}
Loading

0 comments on commit 7533a84

Please sign in to comment.