#How can I make a custom machine?

27 messages · Page 1 of 1 (latest)

cosmic knoll
#

I want to make "Disassembler" and the wiki doesn't really help.

fathom wing
#

single or multiblock ?

cosmic knoll
#

single

fathom wing
#

For a single block :
In the startup_script folder:

// First you create a recipe type
GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
    event.create('disassembler') // id of the recipe type
        .category('test')
        .setMaxIOSize(1, 1, 0, 0) // Max Item Inputs, Max Item Outputs, Max Fluid Inputs, Max Fluid Outputs
        .setSlotOverlay(false, false, GuiTextures.COMPRESSOR_OVERLAY)
        .setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
        .setSound(GTSoundEntries.BATH)
        .setSound(GTSoundEntries.ELECTROLYZER)
})

// Then you create your machine
GTCEuStartupEvents.registry('gtceu:machine', event => {
    // Single block disassembler
    event.create('disassembler', 'simple', GTValues.LV, GTValues.MV, GTValues.HV, GTValues.EV, GTValues.IV, GTValues.LuV, GTValues.ZPM, GTValues.UV, GTValues.UHV, GTValues.UEV, GTValues.UIV)
        .langValue("Single disassembler")
        .recipeType('disassembler', true, true)
        .workableTieredHullRenderer('gtceu:block/machines/disassembler')
})

In the server_script

ServerEvents.recipes(event => {
    //One for each recipe or you can use a loop to add more
    event.recipes.gtceu.disassembler("boom")
        .itemInputs('gtceu:rubber_sapling')
        .itemOutputs(['32x gtceu:rubber_log'])
        .duration(1)
})
cosmic knoll
#

dam

fathom wing
#

I used mine for reference so there might be some things that you have to change for yours of course

cosmic knoll
#

ok

#

how do i do the textures

#

1.20.1

#

if its important

cosmic knoll
#

nothing works

steel tundra
#

You did material wrong

#

Do you have probejs

#

Use probejs 6.0.1 and vscode extension 1.0 I believe

#

It will show autocompletions for kubejs code

cosmic knoll
#

id od have probe js

#

if i delete on line another line gives an error

lucid latch
# cosmic knoll if i delete on line another line gives an error

If I understand correctly
Kubejs is to blame for everything, he updated some values, because of which the creation of machines(gtceu:machine) or similar is currently impossible.
The options are either to wait for the authors of Greg to fix it, or to downgrade the version of kubejs, rino.

steel tundra
#

guh

cosmic knoll
#

ok

#

i understand

lucid latch
#

🤡

cosmic knoll
#

ok

lucid latch