#using extendedcrafting singularities in recipes

11 messages · Page 1 of 1 (latest)

kindred oak
#

it seems like the singularities use nbt data or something to save which type they are, and to make it worse, this is in a custom recipe type, so i can't use item.of()

woeful magnetBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

kindred oak
#

what i want to do is use the avaritia compressor to make the singularities from extendedcrafting, because those ones are way easier to make

#

but the avaritia compressor only works as a custom recipe type, so i need to make a json object and all that

#

so far, i have

event.recipes.avaritia.compressor({
    result: {
        item: 'extendedcrafting:singularity', 
        Id: 'extendedcrafting:tar'
    },
    cost: 413,
    ingredients: [{item: `minestuck:${mat}_${candy}`}]
})
#

but all the recipes come out with null singularities

remote yew
#

so i can't use item.of()
You can use Item.of() in a custom recipe ^^ You just need to add .toJson() to ItemStack / Item.of().toJson()

#

Same goes for Ingredient.of()

kindred oak
#

ah ok

remote yew
#

This doesn't work 100% of the time, as, for example, IE uses custom count and tag handler, but for anything that uses default JSON structure, it should work fine 😄

kindred oak
#

ok well that was an easy fix