Skip to content

Commit 26be653

Browse files
committed
refactor: Migrate custom compat recipes to data gen
1 parent 81e9d66 commit 26be653

50 files changed

Lines changed: 440 additions & 488 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

common/src/main/resources/data/littlejoys/recipe/drop_rush/bell_peppers.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/bell_peppers.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/bell_peppers"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/bell_peppers",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/broccoli.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/broccoli.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/broccoli"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/broccoli",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/cauliflower.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/cauliflower.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/cauliflower"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/cauliflower",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/chilli_peppers.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/chilli_peppers.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/chilli_peppers"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/chilli_peppers",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/corn.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/corn.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/corn"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/corn",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/eggplants.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/eggplants.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/eggplants"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/eggplants",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/lettuce.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/lettuce.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/lettuce"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/lettuce",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/onions.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/onions.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/onions"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/onions",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

common/src/main/resources/data/littlejoys/recipe/drop_rush/peanuts.json renamed to common/src/generated/resources/data/pantryforblockheads/recipe/drop_rush/peanuts.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"type": "littlejoys:drop_rush",
3-
"conditions": [
4-
{
5-
"type": "forge:mod_loaded",
6-
"mod": "littlejoys"
7-
}
8-
],
92
"fabric:load_conditions": [
103
{
114
"condition": "fabric:all_mods_loaded",
@@ -14,12 +7,7 @@
147
]
158
}
169
],
17-
"neoforge:conditions": [
18-
{
19-
"type": "neoforge:mod_loaded",
20-
"modid": "littlejoys"
21-
}
22-
],
10+
"type": "littlejoys:drop_rush",
2311
"eventCondition": {
2412
"type": "is_state",
2513
"state": {
@@ -29,5 +17,11 @@
2917
}
3018
}
3119
},
32-
"lootTable": "pantryforblockheads:blocks/peanuts"
33-
}
20+
"lootTable": "pantryforblockheads:blocks/peanuts",
21+
"neoforge:conditions": [
22+
{
23+
"type": "neoforge:mod_loaded",
24+
"modid": "littlejoys"
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)