#Custom Infusion Recipes @mekanism

100 messages · Page 1 of 1 (latest)

hybrid shale
#

I've spent 4+ hours sifting through multiple modpacks recipes, unzipped mekanism mod, and checked out what they did. Spent hours researching, reading articles. Nothing is putting me in the direction to make custom infusion recipes.

I have even added dust_zephyr to mekanism and forge:dust. Still no luck.

"type":"mekanism:metallurgic_infusing","chemicalInput":{"amount":10,"tag":"kubejs:dust_zephyr"},
    "itemInput":{"ingredient":{"item":"thermal:enderium_block"}},
    "output":{"item":"kubejs:enlightened_enderium"}})

This is about where I have become overly stumped. There is no errors from what I can see. But zephyr dust does not have a recipe. I have also tried doing this, multiple ways. Again, no errors are returned, but still no recipe.

south thornBOT
#

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

warped tundraBOT
#

Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt

hybrid shale
warped tundraBOT
#

Paste version of server.txt from @hybrid shale

woven cave
#

From what I remember my friend, doesnt there have to be "liquid" for infusing or custom material of that type?

hybrid shale
#

Apparently yes. Which i have created

#

But the question is, if I want dust to be the thing u put in, how do I create it so it makes flat "zephyr" liquid from the dust

woven cave
#

Add tag to it I guess? Or actually make it material for that purpose? 🙂

hybrid shale
#

and then outputs the item i set

woven cave
#

Give me literally 2 mins 🙂

hybrid shale
#

😮 I've got made and setup basically everything. Just this part never works. and after 4hrs. since my ahair is already gone, I'm here :d

#
"type":"mekanism:metallurgic_infusing","chemicalInput":{"amount":10,``"tag":"mekanism:zephyr"},``
    "itemInput":{"ingredient":{"item":"thermal:enderium_block"}},
    "output":{"item":"kubejs:enlightened_enderium"}})```
#

Sorry. I just miss coding. this is very exciting lol

woven cave
#

event.create('mekanism:zephyr').displayName('Zephyr');?

#

Wrong

#
event.create("zephyr_dust).displayName("Zephyr")
#

You dont put there "mekanism:zephyr". Least it never used to work for me before tbh

#

Usage of certain modid as pretending that its item from "that mod"

round garden
#

that just changes the mod ID, it does work

hybrid shale
#

i thought that was weird

round garden
#

if you dont put anything, it just defaults to kubejs:something

hybrid shale
#

makes sense

#
    event.get('forge:ingots').add('kubejs:zephyr_ingot');    
    event.get('forge:dusts').add('kubejs:dust_zephyr');
    event.get('mekanism:dust').add('kubejs:dust_zephyr');
})```
woven cave
#

Got that now. You need to make "gas" from what I understand.

hybrid shale
#

how do i incorporate the :zephyr"

#

oh

#

OH

woven cave
#

So you need to make custom "gas" from what I inderstand

hybrid shale
#

that makes sense

woven cave
#

Sorry, that was ZenScript(Disgusting crafttweaker :C)

hybrid shale
#

LOL

woven cave
#
{
    "type": "mekanism:infusion_conversion",
    "input": {
        "ingredient": {
            "tag": "forge:dusts/tin"
        }
    },
    "output": {
        "amount": 10,
        "infuse_type": "mekanism:tin"
    }
}

Well, here we go

hybrid shale
#

yea guess we found that at the same time

woven cave
#

Another bit is find what exactly you need to "make"

hybrid shale
#

well that doesnt work.

woven cave
#

Because you still need to create infusion type itself 🙂

#

"mekanism:zephyr" to be precise

hybrid shale
#
    {"type":"mekanism:infusion_conversion",
    "input":{"ingredient":{"tag":"kubejs:dust_zephyr"}},
    "output":{"amount":10,"infuse_type":"mekanism:zephyr"}})```
#

Sorry. Im just like. 2 days into javascript

woven cave
#
event.custom({
        "type": "mekanism:infusion_conversion",
        "input": {
            "ingredient": {
                "item": "mekanism:zephyr"
            }
        },
        "output": {
            "amount": 10,
            "infuse_type": "mekanism:zephyr"
        }
    })
hybrid shale
#

nope

#

didnt work

#

still no recipe

#

or wait

#

yea zephyr and zephyr dust still dont have a recipe.

#

despite no errors again now

woven cave
#

Yeah, you might want to also try to add tag to it, possibly or something, not sure :/

hybrid shale
#

legit what im saying. da fuq

#

How about I do this. because something major is being missed, and nothings telling me otherwise.

        "type": "mekanism:infusion_conversion",
        "input": {
            "ingredient": {
                "tag": "kubejs:dust_zephyr"
            }
        },
        "output": {
            "amount": 10,
            "infuse_type": "mekanism:zephyr"
        }
    })



  event.custom({
    "type":"mekanism:metallurgic_infusing","chemicalInput":{"amount":10,"tag":"kubejs:dust_zephyr"},
    "itemInput":{"ingredient":{"item":"thermal:enderium_block"}},
    "output":{"item":"kubejs:enlightened_enderium"}})```
#
    //event.create('god_seed').displayName('Incomplete Creative Augment');
    event.create('god_seed').glow(true).displayName('GOD Seed');
    event.create('nether_star_coin').glow(true).displayName('Nether star Coin');
    event.create('enlightened_nether_star').glow(true).displayName('Enlightened Nether Star');
    event.create('nether_star_compressed').glow(true).displayName('Nether star Compressed');
    event.create('enlightened_enderium').glow(true).displayName('Enlightened Enderium');
    event.create('zephyr_ingot').glow(true).displayName('Zephyr Ingot');
    event.create('dust_zephyr').glow(false).displayName('Zephyr Dust');
    event.create('draconium_ingot').displayName('Draconium Ingot');    
    event.create('mekanism:zephyr').displayName('Zephyr');

    })```
#

so if it doesnt make sense.

You input zephyr dust into the infusing factory. It makes "zephyr" which is used to infuse enderium blocks, to make englithened enderium block

#

this is all getting me close, and better understanding more theni di dbefore

#

[16:51:31] [WARN ] Error creating recipe mekanism:kjs_5ushvju7zvj3kkiuyaepgyc06[mekanism:infusion_conversion]: {"type":"mekanism:infusion_conversion","input":{"ingredient":{"item":"kubejs:dust_zephyr"}},"output":{"amount":10.0,"infuse_type":"mekanism:zephyr"}}: com.google.gson.JsonSyntaxException: Invalid infuse_type type 'mekanism:zephyr'

#

here is the infusion recipe that ties this all together

    "type":"mekanism:metallurgic_infusing","chemicalInput":{"amount":10,"tag":"kubejs:dust_zephyr"},
    "itemInput":{"ingredient":{"item":"thermal:enderium_block"}},
    "output":{"item":"kubejs:enlightened_enderium"}})```
#

IH

#

LOL

#

oh

#

nvmi thought i was onto something

woven cave
#

Well to be honest this is blind spot, kind of... But at the same time is not. I kind of know what has to be done but i am not able to do it :/

#

Cause I dont know JS or such stuff 😄

hybrid shale
#

That's fair. this is the best place it seems anyway. but yea. im 2 days into js, and im quite impressed with what ive done not knowing. but now understand

woven cave
#

Basically, hierarchy:

  • Create Zephyr Dust Basic Item
  • Add proper tag to that Zephyr dust (I would try to not use mekanism:zephyr and stick with leave it for now just kubejs item).
  • Add recipe to convert zephyr into infuse ingredient (yet to find), it does not seems Mekanism makes it automatically from tag because, well... There are textures to it i gues
hybrid shale
#

naw zephyr dust has the correct tags forge:dust but zephyr itself (the gass) does not have any corresponding tags

but probs using just kubejs instead it probs better

#

yea. im trying basically everything now. Every single person who has the answer.. uses onevent

#

and then whenu convert.. it breaks

woven cave
#

I have it, I think. It will require just a LITTLE bit more wokr 😄

hybrid shale
#

lol

#

dont I just do something like this StartupEvents.registry('mekanism.gas.registry', event => { console.log('[AMMONIUM@KUBEJS]: Adding infuse type registry entries...'); event.create('mekanism:zephyr').displayName('Zephyr');

woven cave
#

You can try but bit differently when youre using java

hybrid shale
#

dw. it doesnt work

woven cave
#

First of all, you have to import java class you want to use:

#

const InfuseType = java("mekanism.api.chemical.infuse.InfuseType")

#

I havent got any further though :/
Since idk java/js, i am lost after that. But my method should work. I just dont know how to define new infuse type

#
const InfuseType = java("mekanism.api.chemical.infuse.InfuseType")

zephyrInfuse = new InfuseType()

^ I dont know what to put into new InfuseType() shiet :C

warped tundraBOT
#

[Quote ➤](#1078321791375781909 message) Doesn't require any addons, place outside of events in startup

const $EventBuses = Java.loadClass('dev.architectury.platform.forge.EventBuses')
const $GasDeferredRegister = Java.loadClass('mekanism.common.registration.impl.GasDeferredRegister')
const $SlurryDeferredRegister = Java.loadClass('mekanism.common.registration.impl.SlurryDeferredRegister')
const $InfuseTypeDeferredRegister = Java.loadClass('mekanism.common.registration.impl.InfuseTypeDeferredRegister')

const GASES = new $GasDeferredRegister('kubejs')
const SLURRY = new $SlurryDeferredRegister('kubejs')
const INFUSETYPE = new $InfuseTypeDeferredRegister('kubejs')

GASES.register('example_gas', 0xA020F0)
SLURRY.register('example_slurry', builder => builder.color(0xA020F0))
INFUSETYPE.register('example_infuse_type', 0xA020F0)

GASES.register($EventBuses.getModEventBus('kubejs').get())
SLURRY['register(net.minecraftforge.eventbus.api.IEventBus)']($EventBuses.getModEventBus('kubejs').get())
INFUSETYPE.register($EventBuses.getModEventBus('kubejs').get())
round garden
#

#1048591172165189632 :P

woven cave
#

holy

hybrid shale
#

😮

woven cave
#

Here you have it! :)

const $InfuseTypeDeferredRegister = Java.loadClass('mekanism.common.registration.impl.InfuseTypeDeferredRegister')

const INFUSETYPE = new $InfuseTypeDeferredRegister('kubejs')

INFUSETYPE.register('example_infuse_type', 0xA020F0)

INFUSETYPE.register($EventBuses.getModEventBus('kubejs').get())

At least I hope so. Thanks for help Lady 🙂

hybrid shale
#

what is "infusetype"

round garden
#

tahts the infusion "liquid" itself

#

thats what its called

hybrid shale
#

lol right

woven cave
#
//Client Scripts
ClientEvents.highPriorityAssets(event => {
    event.addLang('infuse_type.kubejs.zephyr', "Zephyr Infusion")
})

//Startup Scripts
const $InfuseTypeDeferredRegister = Java.loadClass('mekanism.common.registration.impl.InfuseTypeDeferredRegister')

const INFUSETYPE = new $InfuseTypeDeferredRegister('kubejs')

INFUSETYPE.register('zephyr', 0xA020F0) //< Color

INFUSETYPE.register($EventBuses.getModEventBus('kubejs').get())
#

Honestly kind of amazing you can basiclaly access any public class thing / api from other mods and stuff.
You can basically then abuse literally anything from another mod without actually creating another mod and stuff 😄

hybrid shale
#

i mean since this doesnt work still. Maybe ive just trying to bite off more then i can chew, being this new to js

#

but yea i gave up looking, cause i wasnt finding my answer

#

! [17:27:26] [ERR] #7: Error loading KubeJS script: startup_scripts:custom_gases.js': ReferenceError: "$EventBuses" is not defined. (startup_scripts:custom_gases.js#7)

#

YES

#

SUCCESS

#

You guys. are amazing.

#

oh,

#

okay now all the recipes show up correct. and the dust has a recipe now, but i cant put it into the machine lol

hybrid shale
#

Cool I'm going to close this ticket, because the initial issue is resolved. just gotta be able to put the dust, into the infuser now. since it wont go in

hybrid shale
#

thats the zephyr dust lol

#

u cant put it in the machine lol

#

i give up