#Is There Any Way To Add NBT To Json Recipes?
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
ServerEvents.recipes(event => {
event.custom({
"type": "create:mechanical_crafting",
"accept_mirrored": false,
"category": "misc",
"key": {
"A": {
"item": "create:andesite_alloy"
}
},
"pattern": [
"AAA"
],
"result": {
"count": 1,
"id": `automobility:automobile_frame`,
"nbt": 'automobility:frame="automobility:wooden_motorcar"'
},
"show_notification": false
})
Somehow works, but gives an none existent item with wonky properties
ServerEvents.recipes(event => {
event.custom({
"type": "create:mechanical_crafting",
"accept_mirrored": false,
"category": "misc",
"key": {
"A": {
"item": "create:andesite_alloy"
},
"P": {
"tag": "minecraft:planks"
},
"S": {
"tag": "c:stones"
}
},
"pattern": [
" AAA ",
"AAPAA",
"APSPA",
"AAPAA",
" AAA "
],
"result": {
"count": 1,
"id": Item.of(`automobility:automobile_frame[automobility:frame="automobility:wooden_motorcar"]`)
},
"show_notification": false
})
Doesn't work
ServerEvents.recipes(event => {
event.custom({
"type": "create:mechanical_crafting",
"accept_mirrored": false,
"category": "misc",
"key": {
"A": {
"item": "create:andesite_alloy"
}
},
"pattern": [
"AAA"
],
"result": Item.of(`automobility:automobile_frame[automobility:frame="automobility:wooden_motorcar"]`),
"show_notification": false
})
Okay I stumbled my way to the answer - I'm stupid (this works)
you need to check how create does it, its not controlled by kjs, but by the mod the recipe is from
Is that good then, should you close the ticket?

Yeah, sorry, forgot