#Making EMI display a specific graphic when viewing a recipe

12 messages · Page 1 of 1 (latest)

austere skiff
#

I've replaced the recipe for aluminum in create: the factory must grow with my own materials and everything works except the graphic that EMI shows doesn't display the blaze burner you need for it to function. heres what the default recipe looks like in EMI, see the lil blaze dude on the bottom

heres my code:

    e.custom({
        "type": "tfmg:vat_machine_recipe",
        "allowed_vat_types": [
            "tfmg:steel_vat",
            "tfmg:firebrick_lined_vat"
        ],
        "heat_level": 2,
        "ingredients": [
            {
            "item": "mantle:powder/bauxite"
            },
            {
            "item": "mantle:powder/bauxite"
            },
            {
            "item": "mantle:powder/bauxite"
            },
            {
            "item": "mantle:powder/bauxite"
            }
        ],
        "machines": [
            "tfmg:electrode",
            "tfmg:electrode"
        ],
        "min_size": 1,
        "processing_time": 100,
        "results": [
            {
            "id": "mantle:metal/ingot/aluminum"
            },
            {
            "amount": 500,
            "id": "tfmg:carbon_dioxide"
            }
        ]
    })```
queen yachtBOT
#

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

austere skiff
#

and this is what my replacement recipe displays

grand rune
#

From what I've read in the source code, the image should be added when automatically

#

When the heat level is at the specific level.
Does it work if you use just jei and not emi?

#

Ah the issue is that the current state of the GitHub is at a future version already that hasn't been released on curseforge yet

#

Instead of
"heat_level": 2 use
"heat_requirement": "heated"

austere skiff
# grand rune Instead of `"heat_level": 2` use `"heat_requirement": "heated"`

hmm getting this error when i try that: [05:53:00] [ERROR] ! tfmg/recipes.js#883: Error in 'ServerEvents.recipes': dev.latvian.mods.rhino.EcmaError: ReferenceError: "heated" is not defined.

    e.custom({
        "type": "tfmg:vat_machine_recipe",
        "allowed_vat_types": [
            "tfmg:steel_vat",
            "tfmg:firebrick_lined_vat"
        ],
        "heat_requirement": heated,
        "ingredients": [
            {
            "item": "mantle:powder/bauxite"
            },
            {
            "item": "mantle:powder/bauxite"
            },
            {
            "item": "mantle:powder/bauxite"
            },
            {
            "item": "mantle:powder/bauxite"
            }
        ],
        "machines": [
            "tfmg:electrode",
            "tfmg:electrode"
        ],
        "min_size": 1,
        "processing_time": 100,
        "results": [
            {
            "id": "mantle:metal/ingot/aluminum"
            },
            {
            "amount": 500,
            "id": "tfmg:carbon_dioxide"
            }
        ]
    }).id('tfmg:vat_machine_recipe/aluminum')```
#

oh lmao

#

forgot quotes

#

ayy that worked tysm