Skip to content

Instantly share code, notes, and snippets.

@Drullkus
Last active August 11, 2021 17:16
Show Gist options
  • Save Drullkus/60c803c163d45919aac82501e8cbae19 to your computer and use it in GitHub Desktop.
Save Drullkus/60c803c163d45919aac82501e8cbae19 to your computer and use it in GitHub Desktop.
NBT Ingredient Predicate Example
{
"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!\"}"
]
}
}
}
}
{
"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!\"}"]
}
}
}
}
{
"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