Fixed copper recipes, added recipe advancement

This commit is contained in:
Frederik Palmø 2021-10-08 11:17:57 +02:00
parent be8ed218a8
commit f7e9bca610
27 changed files with 363 additions and 20 deletions

View file

@ -51,7 +51,7 @@ tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8" it.options.encoding = "UTF-8"
// Minecraft 1.17 (21w19a) upwards uses Java 16. // Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release = 17 it.options.release = 16
} }
java { java {

View file

@ -5,6 +5,11 @@
"item.immersivetools.copper_hoe": "Copper Hoe", "item.immersivetools.copper_hoe": "Copper Hoe",
"item.immersivetools.copper_sword": "Copper Sword", "item.immersivetools.copper_sword": "Copper Sword",
"item.immersivetools.copper_helmet": "Copper Helmet",
"item.immersivetools.copper_chestplate": "Copper Chestplate",
"item.immersivetools.copper_leggings": "Copper Leggings",
"item.immersivetools.copper_boots": "Copper Boots",
"item.immersivetools.flint_pickaxe": "Flint Pickaxe", "item.immersivetools.flint_pickaxe": "Flint Pickaxe",
"item.immersivetools.flint_axe": "Flint Axe", "item.immersivetools.flint_axe": "Flint Axe",
"item.immersivetools.flint_shovel": "Flint Shovel", "item.immersivetools.flint_shovel": "Flint Shovel",

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_axe"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_axe"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_boots"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_boots"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_chestplate"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_chestplate"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_helmet"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_helmet"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_hoe"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_hoe"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_leggings"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_leggings"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_pickaxe"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_pickaxe"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_shovel"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_shovel"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:copper_sword"]
},
"criteria": {
"has_copper": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:copper_ingot"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:copper_sword"
}
}
},
"requirements": [["has_copper", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:flint_axe"]
},
"criteria": {
"has_flint": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:flint"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:flint_axe"
}
}
},
"requirements": [["has_flint", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:flint_hoe"]
},
"criteria": {
"has_flint": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:flint"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:flint_hoe"
}
}
},
"requirements": [["has_flint", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:flint_pickaxe"]
},
"criteria": {
"has_flint": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:flint"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:flint_pickaxe"
}
}
},
"requirements": [["has_flint", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:flint_shovel"]
},
"criteria": {
"has_flint": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:flint"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:flint_shovel"
}
}
},
"requirements": [["has_flint", "has_the_recipe"]]
}

View file

@ -0,0 +1,25 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": ["immersivetools:flint_sword"]
},
"criteria": {
"has_flint": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:flint"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:flint_sword"
}
}
},
"requirements": [["has_flint", "has_the_recipe"]]
}

View file

@ -4,9 +4,6 @@
"key": { "key": {
"C": { "C": {
"item": "minecraft:copper_ingot" "item": "minecraft:copper_ingot"
},
"S": {
"item": "minecraft:stick"
} }
}, },
"result": { "result": {

View file

@ -4,9 +4,6 @@
"key": { "key": {
"C": { "C": {
"item": "minecraft:copper_ingot" "item": "minecraft:copper_ingot"
},
"S": {
"item": "minecraft:stick"
} }
}, },
"result": { "result": {

View file

@ -4,9 +4,6 @@
"key": { "key": {
"C": { "C": {
"item": "minecraft:copper_ingot" "item": "minecraft:copper_ingot"
},
"S": {
"item": "minecraft:stick"
} }
}, },
"result": { "result": {

View file

@ -4,9 +4,6 @@
"key": { "key": {
"C": { "C": {
"item": "minecraft:copper_ingot" "item": "minecraft:copper_ingot"
},
"S": {
"item": "minecraft:stick"
} }
}, },
"result": { "result": {

View file

@ -1,7 +1,7 @@
{ {
"replace": false, "replace": false,
"skill": "defense", "skill": "defense",
"level": 2, "level": 3,
"item": "minecraft:armor", "item": "minecraft:armor",
"material": "copper" "material": "copper"
} }

View file

@ -1,7 +1,7 @@
{ {
"replace": false, "replace": false,
"skill": "farming", "skill": "farming",
"level": 2, "level": 3,
"item": "minecraft:axe", "item": "minecraft:axe",
"material": "copper" "material": "copper"
} }

View file

@ -1,7 +1,7 @@
{ {
"replace": false, "replace": false,
"skill": "farming", "skill": "farming",
"level": 2, "level": 3,
"item": "minecraft:hoe", "item": "minecraft:hoe",
"material": "copper" "material": "copper"
} }

View file

@ -1,7 +1,7 @@
{ {
"replace": false, "replace": false,
"skill": "mining", "skill": "mining",
"level": 2, "level": 3,
"item": "minecraft:tool", "item": "minecraft:tool",
"material": "copper" "material": "copper"
} }

View file

@ -1,7 +1,7 @@
{ {
"replace": false, "replace": false,
"skill": "strength", "skill": "strength",
"level": 2, "level": 3,
"item": "minecraft:sword", "item": "minecraft:sword",
"material": "copper" "material": "copper"
} }

View file

@ -3,5 +3,5 @@
"skill": "farming", "skill": "farming",
"level": 1, "level": 1,
"item": "minecraft:axe", "item": "minecraft:axe",
"material": "flit" "material": "flint"
} }

View file

@ -3,5 +3,5 @@
"skill": "farming", "skill": "farming",
"level": 1, "level": 1,
"item": "minecraft:hoe", "item": "minecraft:hoe",
"material": "hoe" "material": "flint"
} }