mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
[1.18.x] Add 3 new ingredient types, and make existing ingredients compatible with datagen (#8517)
This commit is contained in:
1 parent
c3bd365baa
commit
093acab825
24 files changed
+1130
-38
No files matched your search
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+34
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
+28
@@ -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"
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"###",
|
||||
" # "
|
||||
],
|
||||
"key": {
|
||||
"#": [
|
||||
{
|
||||
"tag": "minecraft:planks"
|
||||
},
|
||||
{
|
||||
"tag": "minecraft:logs"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:bedrock"
|
||||
}
|
||||
]
|
||||
},
|
||||
"result": {
|
||||
"item": "minecraft:dirt"
|
||||
}
|
||||
}
|
||||
+17
@@ -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"
|
||||
}
|
||||
}
|
||||
+13
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user