emilyploszaj / emi

A featureful and accessible item and recipe viewer
MIT License
237 stars 46 forks source link

Adding recipe not done using standard json recipe format #350

Closed Yarden-zamir closed 10 months ago

Yarden-zamir commented 10 months ago

It seems that emi recipes are not using standard json recipe format for items and instead uses item ids. That means there is no support for any nbt data and the like.

I expect the following the work

{
    "type": "emi:world_interaction",
    "left": {
        "item": "wares:delivery_agreement",
        "count": 1,
        "nbt": "{buyerName:'{\"color\":\"#409D9B\",\"text\":\"Black Hole Bagels Llc\"}',display:{Name:'{\"text\":\"Black Hole Bagels Llc - Ingredients needed\",\"italic\":\"false\"}'},message:'{\"text\":\"Hello, we are a new company that is trying to make a new recipe for bagels, we need some ingredients, willing to pay, simple as that\"}',ordered:2,paymentItems:[{Count:1,id:\"botania:gourmaryllis\"},{Count:1,id:\"minecraft:water_bucket\"},{Count:4,id:\"minecraft:hopper\"},{Count:16,id:\"minecraft:sugar_cane\"}],requestedItems:[{Count:32,id:\"kubejs:fermented_blob\"}],seal:\"black_hole_bagels_llc\",title:'{\"text\":\"Ingredients needed\"}'}"
    },
    "right": {
        "item": "wares:delivery_table"
    },
    "result": {
        "item": "wares:completed_delivery_agreement",
        "count": 1,
        "nbt": "{buyerName:'{\"color\":\"#409D9B\",\"text\":\"Black Hole Bagels Llc\"}',delivered:2,display:{Name:'{\"text\":\"Black Hole Bagels Llc - Ingredients needed\",\"italic\":\"false\"}'},isCompleted:1b,message:'{\"text\":\"Hello, we are a new company that is trying to make a new recipe for bagels, we need some ingredients, willing to pay, simple as that\"}',ordered:2,paymentItems:[{Count:1,id:\"botania:gourmaryllis\"},{Count:1,id:\"minecraft:water_bucket\"},{Count:4,id:\"minecraft:hopper\"},{Count:16,id:\"minecraft:sugar_cane\"}],requestedItems:[{Count:32,id:\"kubejs:fermented_blob\"}],seal:\"black_hole_bagels_llc\",title:'{\"text\":\"Ingredients needed\"}'}"
    }
}
emilyploszaj commented 10 months ago

Please read the customization guide https://github.com/emilyploszaj/emi/wiki/Customization-Guide. EMI's format is for EMI's stacks, which are not strictly item stacks.

Yarden-zamir commented 10 months ago

Ah sorry about that, I did read the customization guid but skipped that part specifically because I assumed it's the same as the standard