[1.18.x] Add 3 new ingredient types, and make existing ingredients compatible with datagen (#8517)

This commit is contained in:
KnightMiner authored and GitHub committed 2022-03-24 22:04:32 +00:00
1 parent c3bd365baa
commit 093acab825
24 files changed
+1130 -38

No files matched your search

@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:compound_ingredient_custom_types"
]
},
"criteria": {
"has_planks": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:crimson_planks"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:compound_ingredient_custom_types"
}
}
},
"requirements": [
[
"has_planks",
"has_the_recipe"
]
]
}
@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:compound_ingredient_only_vanilla"
]
},
"criteria": {
"has_planks": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:crimson_planks"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:compound_ingredient_only_vanilla"
}
}
},
"requirements": [
[
"has_planks",
"has_the_recipe"
]
]
}
@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:intersection_ingredient"
]
},
"criteria": {
"has_planks": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:crimson_planks"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:intersection_ingredient"
}
}
},
"requirements": [
[
"has_planks",
"has_the_recipe"
]
]
}
@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:contains_nbt_ingredient_item_set"
]
},
"criteria": {
"has_pickaxe": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:wooden_pickaxe"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:contains_nbt_ingredient_item_set"
}
}
},
"requirements": [
[
"has_pickaxe",
"has_the_recipe"
]
]
}
@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:contains_nbt_ingredient_single_item"
]
},
"criteria": {
"has_pickaxe": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:stone_pickaxe"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:contains_nbt_ingredient_single_item"
}
}
},
"requirements": [
[
"has_pickaxe",
"has_the_recipe"
]
]
}
@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:difference_ingredient"
]
},
"criteria": {
"has_fence": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:crimson_fence"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:difference_ingredient"
}
}
},
"requirements": [
[
"has_fence",
"has_the_recipe"
]
]
}
@@ -0,0 +1,34 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"data_gen_test:exact_nbt_ingredient"
]
},
"criteria": {
"has_pickaxe": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:iron_pickaxe"
]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "data_gen_test:exact_nbt_ingredient"
}
}
},
"requirements": [
[
"has_pickaxe",
"has_the_recipe"
]
]
}
@@ -0,0 +1,28 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#",
"#"
],
"key": {
"#": [
{
"type": "forge:nbt",
"item": "minecraft:iron_pickaxe",
"count": 1,
"nbt": "{Damage:3}"
},
[
{
"tag": "minecraft:planks"
},
{
"tag": "minecraft:logs"
}
]
]
},
"result": {
"item": "minecraft:gold_block"
}
}
@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
" # "
],
"key": {
"#": [
{
"tag": "minecraft:planks"
},
{
"tag": "minecraft:logs"
},
{
"item": "minecraft:bedrock"
}
]
},
"result": {
"item": "minecraft:dirt"
}
}
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"type": "forge:partial_nbt",
"items": [
"minecraft:iron_pickaxe",
"minecraft:stone_pickaxe",
"minecraft:wooden_pickaxe"
],
"nbt": "{display:{Name:\u0027{\"text\":\"Diamond Pickaxe\"}\u0027}}"
}
],
"result": {
"item": "minecraft:diamond_pickaxe"
}
}
@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"type": "forge:partial_nbt",
"item": "minecraft:stone_pickaxe",
"nbt": "{Damage:3}"
}
],
"result": {
"item": "minecraft:iron_pickaxe"
}
}
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" # ",
"###",
" # "
],
"key": {
"#": {
"type": "forge:difference",
"base": {
"tag": "minecraft:fences"
},
"subtracted": {
"tag": "minecraft:non_flammable_wood"
}
}
},
"result": {
"item": "minecraft:flint_and_steel"
}
}
@@ -0,0 +1,14 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"type": "forge:nbt",
"item": "minecraft:iron_pickaxe",
"count": 1,
"nbt": "{Damage:3}"
}
],
"result": {
"item": "minecraft:golden_pickaxe"
}
}
@@ -0,0 +1,24 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"###",
" # "
],
"key": {
"#": {
"type": "forge:intersection",
"children": [
{
"tag": "minecraft:planks"
},
{
"tag": "minecraft:non_flammable_wood"
}
]
}
},
"result": {
"item": "minecraft:netherrack"
}
}