Add support for oredict item predicates in advancements, and add a registry for item predicates (#4188)

This commit is contained in:
Thanh-Phuong authored and LexManos committed 2017-08-09 15:20:45 -05:00
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"]]
}