diff --git a/data/common/recipes/SmithingRecipe.m3ecjson b/data/common/recipes/SmithingRecipe.m3ecjson index b1b05f3..2adb77c 100644 --- a/data/common/recipes/SmithingRecipe.m3ecjson +++ b/data/common/recipes/SmithingRecipe.m3ecjson @@ -1,3 +1,26 @@ +---if1 version_past_1.20 +{ + "type": "minecraft:smithing_transform", + "template": { +---if2 template +---if ?template #startswith # + "tag": "${template^substring(1)}"---fi---if ?!template #startswith # + "item": "${template}"---fi---2fi + }, + "base": { +---if ?ingredient #startswith # + "tag": "${ingredient^substring(1)}"---fi---if ?!ingredient #startswith # + "item": "${ingredient}"---fi + }, + "addition": { +---if ${ingredient2} #startswith # + "tag": "${ingredient2^substring(1)}"---fi---if !${ingredient2} #startswith # + "item": "${ingredient2}"---fi + }, + "result": { + "item": "${result}" + } +}---1fi---if1 !version_past_1.20 { "type": "minecraft:smithing", "base": { @@ -13,4 +36,4 @@ "result": { "item": "${result}" } -} \ No newline at end of file +}---1fi \ No newline at end of file diff --git a/data/fabric1.20.1/m3ec_build.json b/data/fabric1.20.1/m3ec_build.json index 3d13efa..5fbf5fa 100644 --- a/data/fabric1.20.1/m3ec_build.json +++ b/data/fabric1.20.1/m3ec_build.json @@ -20,6 +20,11 @@ "action": "setdictkey", "key": "version_past_1.19.3", "value": true + }, + { + "action": "setdictkey", + "key": "version_past_1.20", + "value": true } ], "preActions": [ diff --git a/data/fabric1.20.4/m3ec_build.json b/data/fabric1.20.4/m3ec_build.json index 32a2085..f080212 100644 --- a/data/fabric1.20.4/m3ec_build.json +++ b/data/fabric1.20.4/m3ec_build.json @@ -19,6 +19,11 @@ "action": "setdictkey", "key": "version_past_1.19.3", "value": true + }, + { + "action": "setdictkey", + "key": "version_past_1.20", + "value": true } ], "preActions": [ diff --git a/data/forge1.20.1/m3ec_build.json b/data/forge1.20.1/m3ec_build.json index 99f2df7..3e9d61b 100644 --- a/data/forge1.20.1/m3ec_build.json +++ b/data/forge1.20.1/m3ec_build.json @@ -17,6 +17,11 @@ "action": "setdictkey", "key": "version_past_1.19.3", "value": true + }, + { + "action": "setdictkey", + "key": "version_past_1.20", + "value": true } ], "preActions": [ diff --git a/data/forge1.20.4/m3ec_build.json b/data/forge1.20.4/m3ec_build.json index 0c8d5cd..0e761ad 100644 --- a/data/forge1.20.4/m3ec_build.json +++ b/data/forge1.20.4/m3ec_build.json @@ -17,6 +17,11 @@ "action": "setdictkey", "key": "version_past_1.19.3", "value": true + }, + { + "action": "setdictkey", + "key": "version_past_1.20", + "value": true } ], "preActions": [