#I want to make a custom machine.

69 messages · Page 1 of 1 (latest)

plucky fable
#

I want to make a custom machine like the ex nihilo barrel, but I want it to make different recipes if it have cold or heat below, how do I even start this project?

onyx flareBOT
#

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

rustic night
#

yes

hazy furnace
#

it does exactly what youre looking for with blocks like cobblestone, im sure youd be able to do the same with other items, youd have to look into it though

plucky fable
#

I think it's not exactly what I want

#

I'd rather make the custom machine

#

how do I start?

hazy furnace
#

??kjswiki

safe reefBOT
hazy furnace
#

then in a right click event you would have it consume the item and add a persistent data that when it reaches 9 (or however many items youre doing) would spawn in the appropriate block

plucky fable
#

the hopper or pipes works as right click?

#

and, can I make the 9 a variable so I can set how much it takes in a craft js?

hazy furnace
#

hmm hoppers and pipes i have not thought of

#

like i said the mod that i linked probably has that functionality and you could edit it with kubejs maybe, up to you tho

plucky fable
safe reefBOT
hazy furnace
#

well thats where the right click event comes in

#

im not sure how to make hoppers usable on it tho

plucky fable
#

what if I made it like a chest with no UI

#

so it stores items inside

hazy furnace
#

hmm

#

i mean yeah im sure you could create a container and when the container contains a certain nbt value it could spit out an output?

#

not sure how to go about that tho

plucky fable
#

the part with fire or ice below it is doable right?

hazy furnace
#

hmm

#

thats an interesting thing because youd somehow have to detect if a block is right next to the container

plucky fable
#

modular machinery can

#

"Check/place/replace/break/destroy nearby blocks."

#

I think ill create the machine with Custom Machinery and only add recipes with the KJS

hazy furnace
#

ooo

#

do it

plucky fable
#

(do you know how this mod works tho?)

hazy furnace
#

i do not 😄

plucky fable
#

INDEED

hazy furnace
#

lmao

plucky fable
#

ok so if I discover this ill be able to make my modpack be very greggy

#

I HAvE TO

#

WISH ME GL

#

ill be back with news, dont wait me for the dinner...

hazy furnace
#

you got this my man

plucky fable
#

(just to make sure the datapacks folder goes inside my modpack folder or kube js?)

#

the modpack yeah this is independent

hazy furnace
#

kubejs>data is the datapacks folder

#

then you put your datapack in there

rustic night
#

just use the kubejs/data folder

plucky fable
#

really?

rustic night
#

also, don't ask why I'm awake at 3am heh

rustic night
plucky fable
hazy furnace
#

l00l

rustic night
plucky fable
#

which syntax do I need to start a datapack

#

its a json

#

I think its just brackets

#

I hope it worked

hazy furnace
#

you need an mcmeta file for it

#

all .jars have them in them you could copy

plucky fable
hazy furnace
#

to make a custom machinery(or any other mod) datapack

#

then that goes into the kubejs>data folder for you to edit in

plucky fable
#

ok so

#

im looking on the custom machinery wiki

#
ServerEvents.recipes(event =>{
    event.recipes.custommachinery.custom_machine('custommachinery:light/composter', 100)
    .requireFluid(Fluid.of('minecraft:water'))
.requireFluid(Fluid.of('minecraft:lava'))
.produceItem(Item.of('minecraft:obsidian'))
})```
#

whats wrong here?

plucky fable
#

its FINALLY working

#

FINALLY