Last active
August 11, 2021 17:16
-
-
Save Drullkus/60c803c163d45919aac82501e8cbae19 to your computer and use it in GitHub Desktop.
NBT Ingredient Predicate Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "minecraft:crafting_shapeless", | |
"ingredients": [{ | |
"item": "minecraft:amethyst_block", | |
"type": "nbt_ingredient_predicate:nbt_includes", | |
"nbt": { | |
"display": {"Name":"{\"text\":\"I've got NBT!\"}"} | |
} | |
}], | |
"result": { | |
"item": "minecraft:diamond", | |
"count": 1, | |
"nbt": { | |
"display": { | |
"Name": "{\"text\":\"Tada!\"}", | |
"Lore": [ | |
"{\"text\":\"This diamond was crafted from a\"}", | |
"{\"text\":\"named Block of Amethyst, neat!\"}" | |
] | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "minecraft:crafting_shapeless", | |
"ingredients": [{ | |
"item": "minecraft:dirt" | |
}], | |
"result": { | |
"item": "minecraft:amethyst_block", | |
"nbt": { | |
"display": { | |
"Name": "{\"text\":\"I've got NBT!\"}", | |
"Lore": ["{\"text\":\"This lore is irrelevant to the Recipe!\"}"] | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "minecraft:crafting_shapeless", | |
"ingredients": [{ | |
"item": "minecraft:cobblestone" | |
}], | |
"result": { | |
"item": "minecraft:amethyst_block", | |
"nbt": { | |
"display": { | |
"Name": "{\"text\":\"I've got NBT!\"}" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment