EMI

EMI

1M Downloads

Adding recipe not done using standard json recipe format

Yarden-zamir opened this issue ยท 2 comments

commented

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\"}'}"
	}
}
commented

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.

commented

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