#Adding recipe for Concrete from IE to Create

125 messages · Page 1 of 1 (latest)

safe terrace
#

I need some assistance in terms of how to use multiple tags for same resource, and generally on how to do this kind of thing...
So far code looks like this.

umbral mapleBOT
#

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

safe terrace
#

Small update, forgot some commas

scarlet geyser
#

replace item with tag for stuff in the forge namespace

#

idr if forge even has sand, gravel, and clay entries

safe terrace
#

Yeah

#

I've checked in Ad Astra has forge:sand and regular MC gravel also has forge:gravel

#

Also

#

How it is supposed to look like?

scarlet geyser
#

can you paste it here? easier for me to edit @safe terrace

safe terrace
#

{
"type":"create:mixing",
"ingredients": [
{"item":"minecraft:sand","amount":1},
{"item":"minecraft:gravel","amount":2},
{"item":"minecraft:clay_ball","amount":1},
{"fluid":"minecraft:water","amount":40500}
],
"result": [
{"item":"immersiveengineering:concrete","amount":6}
]

}

#

That`s the latest

#

what I`ve done with my friend

scarlet geyser
#
    "type": "create:mixing",
    "ingredients": [
        {
            "tag": "forge:sand"
        },
        {
            "tag": "forge:gravel"
        },
        {
            "tag": "forge:clay"
        },
        {
            "fluid": "minecraft:water",
            "amount": 40500
        }
    ],
    "result": [
        {
            "item": "immersiveengineering:concrete",
            "amount": 6
        }
    ]
}```
#

for multiple inputs of the same item in mixing, youll need to repeat the entry multiple times

#
    "type": "create:mixing",
    "ingredients": [
        {
            "item": "kubejs:clay_dust"
        },
        {
            "item": "kubejs:clay_dust"
        },
        {
            "item": "kubejs:clay_dust"
        },
        {
            "item": "kubejs:brick_dust"
        },
        {
            "item": "kubejs:brick_dust"
        },
        {
            "item": "kubejs:brick_dust"
        },
        {
            "item": "kubejs:deepslate_dust"
        },
        {
            "item": "kubejs:deepslate_dust"
        },
        {
            "item": "kubejs:deepslate_dust"
        },
        {
            "tag": "minecraft:sand"
        },
        {
            "fluid": "minecraft:water",
            "amount": 600
        }
    ],
    "results": [
        {
            "item": "kubejs:coke_brick_mix",
            "count": 16
        }
    ]
}``` this is an example, one of my custom mixing recipes
#

looks like this in game

safe terrace
#

"fluid": "minecraft:water",
"amount": 600
Is this 600mb?

#

Also

scarlet geyser
#

yes, fluid amount is in mb

safe terrace
#

What does this do?

#

{
"item": "kubejs:deepslate_dust"
},

#

Is it a custom item?

scarlet geyser
#

yes, thats just one of my scripts i sent as an example

safe terrace
#

{
"tag": "minecraft:sand"
}
And this counts as one item?

#

Also

scarlet geyser
#

yes

safe terrace
#

Can I do it like:
"tag": "minecraft:sand", "forge:sand", etc.?

scarlet geyser
#

no

#

forge:sand will include minecraft:sand

#

no need to account for all possibilities

safe terrace
#

okay

#

cheers

scarlet geyser
#

np

safe terrace
#

{
"type":"create:mixing",
"ingredients": [
{"item":"minecraft:sand"},
{"item":"minecraft:gravel"},
{"item":"minecraft:gravel"},
{"item":"minecraft:clay_ball"},
{"fluid":"minecraft:water","amount":500}
],
"result": [
{"item":"immersiveengineering:concrete","count":6}
]

}

#

This is what I got in the end

scarlet geyser
#

youll restrict yourself to the normal minecraft sand, if thats what you want

safe terrace
#

That`s fine

scarlet geyser
#

alr

safe terrace
#

I can automate and I`ll deal with rest later

#

BUT

#

it doesn`t work for some reason

#

Do I need to restart game?

scarlet geyser
#

is this a datapack or a kubejs script

safe terrace
#

KubeJS script

#

I know that there`s /reload

scarlet geyser
#

try /reload

#

ive only done this stuff through datapacks

safe terrace
#

I did it

#

/reload

scarlet geyser
#

nothing shows up?

#

idk then

safe terrace
#

trying again

scarlet geyser
#

just try with a datapack

thorn cypress
#

where's the recipe registry event

safe terrace
#

que?

#

what`s this?

scarlet geyser
#

send the entirety of your file

safe terrace
crystal dockBOT
#

Paste version of concrete.json from @safe terrace

scarlet geyser
#

thats more suited to a datapack

safe terrace
#

I`m doing this for the first time so idk

thorn cypress
#
ServerEvents.recipes(event, =>{

  event.custom(
    {
    "type":"create:mixing",
    "ingredients": [
        {
        "item":"minecraft:sand"
        },
        {
        "item":"minecraft:gravel"
         },
        {
        "item":"minecraft:gravel"
        },
        {
        "item":"minecraft:clay_ball"
        },
        {
        "fluid":"minecraft:water",
        "amount":500
        }
        ],
        "result": [
            {
            "item":"immersiveengineering:concrete",
            "count":6
            }
        ]

    }
  )

})
#

did you by any means checked the wiki?

#

it's very helpful

safe terrace
#

I did but briefly

thorn cypress
#

try reading it again

safe terrace
#

will do

thorn cypress
#

you need to place all recipe related scripts inside the ServerEvents.recipes

#

also with json recipes you need to place them inside the event.custom method

#

read this

safe terrace
#

I didn`t even knew that THIS wiki exists

#

Huh

safe terrace
#

I`m trying to put similiar things to .json but it screams error

wise garden
#

.js

safe terrace
#

So I need to convert it back to js

#

It now screams 2 errors

#

I confus

scarlet geyser
#

remove the comma after event in first line

safe terrace
#

/reload and still nothing

#

where do I put file?

#

Okay

#

It says I need to define server.event

crystal dockBOT
#

Paste version of concrete.js from @safe terrace

safe terrace
#

idk

scarlet geyser
#

in kubejs/server_scripts

#

@safe terrace

safe terrace
#

I did it already

#

The errors are started after this

#

The "define server.event"

crystal dockBOT
#

Paste version of server.log from @safe terrace

scarlet geyser
#

no idea then sorry

safe terrace
#

no probs

stone rampart
#

you forgot the s from ServerEvents

safe terrace
#

imma try this now

#

At least I`m not getting old error now

stone rampart
safe terrace
#

yea

#

What do I need to define if I want to do it like this?

crystal dockBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

stone rampart
#

check the custom page

safe terrace
#

custom items?

stone rampart
#

no?

safe terrace
#

Think I found it

wise garden
#

After a lot of fiddling around we got the json to work, it had something to do with the path

#

i appreciate y'all trying to help my buddy here

stone rampart
#

path? hmmm

#

what path curious

wise garden
#

in kubejs/data

#

it was not being read correctly

stone rampart
#

oh i thought youre using custom recipes instead of json files

wise garden
#

we were

#

creating a new recipe using a json file

#

bc thats how i learned to do them and i was teaching OIL how to do it