mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
Add support for oredict item predicates in advancements, and add a registry for item predicates (#4188)
This commit is contained in:
1 parent
82d735e43a
commit
ee449e427c
5 files changed
+337
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"rewards": {
|
||||
"recipes": [ "minecraft:tnt" ]
|
||||
},
|
||||
"criteria": {
|
||||
"has_wood": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"type": "forge:ore_dict",
|
||||
"ore": "plankWood"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"mod_enabled": {
|
||||
"trigger": "oredict_predicate:is_enabled",
|
||||
"conditions": {}
|
||||
}
|
||||
},
|
||||
"requirements": [["has_wood"], ["mod_enabled"]]
|
||||
}
|
||||
Reference in new issue
Block a user