#How can I make a custom machine?
27 messages · Page 1 of 1 (latest)
single or multiblock ?
single
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)
})
dam
I used mine for reference so there might be some things that you have to change for yours of course
nothing works
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
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.
guh
can you explain it more dumbly and also how do i fix it
ok
i understand
Kubejs: I'll go and break half of the scripts for custom mechanisms from Greg Tech
🤡
ok
there's no way to fix it, we're waiting for the greg writers to change it