NBT合成(NBT Recipes)
为JSON合成文件添加NBT数据的能力,并保留了读取带有NBT数据的合成配方的能力。同时还可以设置熔炉、切石机和锻造台的结果数量。
示例合成 JSON
json
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#"
],
"key": {
"#": {
"item": "minecraft:diamond"
}
},
"result": {
"item": "minecraft:amethyst_shard",
"count": 3,
"data": {
"display": {
"Name": "[{\"text\":\"范例物品\",\"italic\":false}]",
"Lore": [
"[{\"text\":\"我是一个范例\",\"italic\":false}]"
]
},
"Enchantments": [{}]
}
}
}
示例熔炼 JSON
json
{
"type": "minecraft:smelting",
"ingredient": {
"item": "minecraft:diamond"
},
"result": {
"item": "minecraft:amethyst_shard",
"count": 3,
"data": {
"display": {
"Name": "[{\"text\":\"范例物品\",\"italic\":false}]",
"Lore": [
"[{\"text\":\"我是一个范例\",\"italic\":false}]"
]
},
"Enchantments": [{}]
}
},
"experience": 1,
"cookingtime": 20
}
示例切石机 JSON
json
{
"type": "minecraft:stonecutting",
"ingredient": {
"item": "minecraft:diamond"
},
"result": {
"item": "minecraft:amethyst_shard",
"count": 3,
"data": {
"display": {
"Name": "[{\"text\":\"范例物品\",\"italic\":false}]",
"Lore": [
"[{\"text\":\"我是一个范例\",\"italic\":false}]"
]
},
"Enchantments": [{}]
}
}
}
示例锻造 JSON
json
{
"type": "minecraft:smithing_transform",
"template": {
"item": "minecraft:stick"
},
"base": {
"item": "minecraft:gold_ingot"
},
"addition": {
"item": "minecraft:diamond"
},
"result": {
"item": "minecraft:amethyst_shard",
"count": 3,
"data": {
"display": {
"Name": "[{\"text\":\"范例物品\",\"italic\":false}]",
"Lore": [
"[{\"text\":\"我是一个范例\",\"italic\":false}]"
]
},
"Enchantments": [{}]
}
}
}
[1.20.1] NBT Recipes 1.0.1+1.20.1
[1.20] NBT Recipes 1.0.1+1.20
[1.20.1] NBT Recipes 1.0.0+1.20.1
收录