Skip to content

Commit 34b7726

Browse files
committed
fix: merge error causing regression on conditional recipe loading
my merging of 1.20.1 stuff into 1.20.4 caused miner recipes to switch from neoforge to the no longer supported forge condition syntax. Closes #1102
1 parent a608359 commit 34b7726

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ group=com.klikli_dev
3131
mod_id=occultism
3232
mod_name=Occultism
3333
mod_license=MIT
34-
mod_version=1.81.4
34+
mod_version=1.124.0
3535
mod_authors=Kli Kli
3636
mod_description=A magic mod inspired by the world of Jonathan Stroud's Bartimaeus. With the help of occult rituals players can summon entities from the "Other Side" to perform magic.
3737

src/generated/resources/data/occultism/recipes/miner/master/stella_arcanum.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"type": "occultism:miner",
3-
"conditions": [
2+
"neoforge:conditions": [
43
{
5-
"type": "forge:not",
4+
"type": "neoforge:not",
65
"value": {
7-
"type": "forge:tag_empty",
6+
"type": "neoforge:tag_empty",
87
"tag": "forge:ores/stella_arcanum"
98
}
109
}
1110
],
11+
"type": "occultism:miner",
1212
"ingredient": {
1313
"tag": "occultism:miners/master"
1414
},

src/generated/resources/data/occultism/recipes/miner/ores/arcane_crystal.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"type": "occultism:miner",
3-
"conditions": [
2+
"neoforge:conditions": [
43
{
5-
"type": "forge:not",
4+
"type": "neoforge:not",
65
"value": {
7-
"type": "forge:tag_empty",
6+
"type": "neoforge:tag_empty",
87
"tag": "forge:ores/arcane_crystal"
98
}
109
}
1110
],
11+
"type": "occultism:miner",
1212
"ingredient": {
1313
"tag": "occultism:miners/ores"
1414
},

src/generated/resources/data/occultism/recipes/miner/ores/runic_stone.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"type": "occultism:miner",
3-
"conditions": [
2+
"neoforge:conditions": [
43
{
5-
"type": "forge:not",
4+
"type": "neoforge:not",
65
"value": {
7-
"type": "forge:tag_empty",
6+
"type": "neoforge:tag_empty",
87
"tag": "forbidden_arcanus:runic_stones"
98
}
109
}
1110
],
11+
"type": "occultism:miner",
1212
"ingredient": {
1313
"tag": "occultism:miners/ores"
1414
},

src/generated/resources/data/occultism/recipes/miner/ores/xpetrified.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"type": "occultism:miner",
3-
"conditions": [
2+
"neoforge:conditions": [
43
{
5-
"type": "forge:not",
4+
"type": "neoforge:not",
65
"value": {
7-
"type": "forge:tag_empty",
6+
"type": "neoforge:tag_empty",
87
"tag": "forge:ores/xpetrified_ore"
98
}
109
}
1110
],
11+
"type": "occultism:miner",
1212
"ingredient": {
1313
"tag": "occultism:miners/ores"
1414
},

src/main/java/com/klikli_dev/occultism/datagen/MinerRecipeProvider.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public JsonObject buildMinerRecipeJson(String minerTag, String outputTag, int we
105105
var recipe = new JsonObject();
106106
recipe.addProperty("type", "occultism:miner");
107107
var conditions = this.buildMinerRecipeConditionJson(outputTag);
108-
recipe.add("conditions", conditions);
108+
recipe.add("neoforge:conditions", conditions);
109109
var ingredient = new JsonObject();
110110
ingredient.addProperty("tag", minerTag);
111111
recipe.add("ingredient", ingredient);
@@ -120,9 +120,9 @@ public JsonArray buildMinerRecipeConditionJson(String outputTag) {
120120
var conditions = new JsonArray();
121121
//multiple conditions on the root level array are treated as AND by forge, but we only have one
122122
var condition = new JsonObject();
123-
condition.addProperty("type", "forge:not");
123+
condition.addProperty("type", "neoforge:not");
124124
var value = new JsonObject();
125-
value.addProperty("type", "forge:tag_empty");
125+
value.addProperty("type", "neoforge:tag_empty");
126126
value.addProperty("tag", outputTag);
127127
condition.add("value", value);
128128
conditions.add(condition);

0 commit comments

Comments
 (0)