Skip to content

Commit

Permalink
🐛 修复nableMinecraft1_21ExperimentalRecipes规则在1.20.5/1.20.6中不可用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
1024-byteeeee committed May 8, 2024
1 parent 17a9448 commit fce2a44
Show file tree
Hide file tree
Showing 138 changed files with 396 additions and 180 deletions.
13 changes: 13 additions & 0 deletions common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ if (mcVersion >= 12005) {
}
JavaVersion MIXIN_COMPATIBILITY_LEVEL = JAVA_VERSION

def COMPAT_RECIPES_ITEM_ID
if (mcVersion >= 12005) {
COMPAT_RECIPES_ITEM_ID = "id"
} else {
COMPAT_RECIPES_ITEM_ID = "item"
}

String versionSuffix = ''
// detect github action environment variables
// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
Expand Down Expand Up @@ -121,6 +128,12 @@ processResources {
text -> text.replace("/*JAVA_VERSION*/", "JAVA_${MIXIN_COMPATIBILITY_LEVEL.ordinal() + 1}")
}
}

filesMatching("assets/carpetamsaddition/AmsRecipeTweakPack/ams/recipes/*.json") {
filter {
text -> text.replace("/*ams_recipes_item_id*/", COMPAT_RECIPES_ITEM_ID)
}
}
}

java {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"#": {
"item": "minecraft:diamond"
},
"C": {
"item": "minecraft:copper_block"
},
"S": {
"item": "minecraft:bolt_armor_trim_smithing_template"
}
},
"pattern": [
"#S#",
"#C#",
"###"
],
"result": {
"count": 2,
"/*ams_recipes_item_id*/": "minecraft:bolt_armor_trim_smithing_template"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:smithing_trim",
"addition": {
"tag": "minecraft:trim_materials"
},
"base": {
"tag": "minecraft:trimmable_armor"
},
"template": {
"item": "minecraft:bolt_armor_trim_smithing_template"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
},
"result":{
"item":"minecraft:bone_block",
"/*ams_recipes_item_id*/":"minecraft:bone_block",
"count":3
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"result":{
"item":"minecraft:bundle",
"/*ams_recipes_item_id*/":"minecraft:bundle",
"count":1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"#"
],
"result": {
"item": "minecraft:chiseled_copper"
"/*ams_recipes_item_id*/": "minecraft:chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 4,
"ingredient": {
"item": "minecraft:copper_block"
},
"result": "minecraft:chiseled_copper"
"result": {
"count": 4,
"/*ams_recipes_item_id*/": "minecraft:chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 1,
"ingredient": {
"item": "minecraft:cut_copper"
},
"result": "minecraft:chiseled_copper"
"result": {
"count": 1,
"/*ams_recipes_item_id*/": "minecraft:chiseled_copper"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"#"
],
"result": {
"item": "minecraft:chiseled_tuff"
"/*ams_recipes_item_id*/": "minecraft:chiseled_tuff"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"#"
],
"result": {
"item": "minecraft:chiseled_tuff_bricks"
"/*ams_recipes_item_id*/": "minecraft:chiseled_tuff_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 1,
"ingredient": {
"item": "minecraft:polished_tuff"
},
"result": "minecraft:chiseled_tuff_bricks"
"result": {
"count": 1,
"/*ams_recipes_item_id*/": "minecraft:chiseled_tuff_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 1,
"ingredient": {
"item": "minecraft:tuff_bricks"
},
"result": "minecraft:chiseled_tuff_bricks"
"result": {
"count": 1,
"/*ams_recipes_item_id*/": "minecraft:chiseled_tuff_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 1,
"ingredient": {
"item": "minecraft:tuff"
},
"result": "minecraft:chiseled_tuff_bricks"
"result": {
"count": 1,
"/*ams_recipes_item_id*/": "minecraft:chiseled_tuff_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 1,
"ingredient": {
"item": "minecraft:tuff"
},
"result": "minecraft:chiseled_tuff"
"result": {
"count": 1,
"/*ams_recipes_item_id*/": "minecraft:chiseled_tuff"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
],
"result": {
"count": 4,
"item": "minecraft:copper_bulb"
"/*ams_recipes_item_id*/": "minecraft:copper_bulb"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"result": {
"count": 3,
"item": "minecraft:copper_door"
"/*ams_recipes_item_id*/": "minecraft:copper_door"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"result": {
"count": 4,
"item": "minecraft:copper_grate"
"/*ams_recipes_item_id*/": "minecraft:copper_grate"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 4,
"ingredient": {
"item": "minecraft:copper_block"
},
"result": "minecraft:copper_grate"
"result": {
"count": 4,
"/*ams_recipes_item_id*/": "minecraft:copper_grate"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
],
"result": {
"count": 2,
"item": "minecraft:copper_trapdoor"
"/*ams_recipes_item_id*/": "minecraft:copper_trapdoor"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"RDR"
],
"result": {
"item": "minecraft:crafter"
"/*ams_recipes_item_id*/": "minecraft:crafter"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"result":{
"item":"minecraft:dispenser",
"/*ams_recipes_item_id*/":"minecraft:dispenser",
"count":1
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"result":{
"item":"minecraft:dispenser",
"/*ams_recipes_item_id*/":"minecraft:dispenser",
"count":1
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"result":{
"item":"minecraft:elytra",
"/*ams_recipes_item_id*/":"minecraft:elytra",
"count":1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"result": {
"item": "minecraft:enchanted_golden_apple",
"/*ams_recipes_item_id*/": "minecraft:enchanted_golden_apple",
"count": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"#"
],
"result": {
"item": "minecraft:exposed_chiseled_copper"
"/*ams_recipes_item_id*/": "minecraft:exposed_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 4,
"ingredient": {
"item": "minecraft:exposed_copper"
},
"result": "minecraft:exposed_chiseled_copper"
"result": {
"count": 4,
"/*ams_recipes_item_id*/": "minecraft:exposed_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 1,
"ingredient": {
"item": "minecraft:exposed_cut_copper"
},
"result": "minecraft:exposed_chiseled_copper"
"result": {
"count": 1,
"/*ams_recipes_item_id*/": "minecraft:exposed_chiseled_copper"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
],
"result": {
"count": 4,
"item": "minecraft:exposed_copper_bulb"
"/*ams_recipes_item_id*/": "minecraft:exposed_copper_bulb"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"result": {
"count": 3,
"item": "minecraft:exposed_copper_door"
"/*ams_recipes_item_id*/": "minecraft:exposed_copper_door"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"result": {
"count": 4,
"item": "minecraft:exposed_copper_grate"
"/*ams_recipes_item_id*/": "minecraft:exposed_copper_grate"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"type": "minecraft:stonecutting",
"count": 4,
"ingredient": {
"item": "minecraft:exposed_copper"
},
"result": "minecraft:exposed_copper_grate"
"result": {
"count": 4,
"/*ams_recipes_item_id*/": "minecraft:exposed_copper_grate"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
],
"result": {
"count": 2,
"item": "minecraft:exposed_copper_trapdoor"
"/*ams_recipes_item_id*/": "minecraft:exposed_copper_trapdoor"
}
}
Loading

0 comments on commit fce2a44

Please sign in to comment.