#Recipe Issue

91 messages · Page 1 of 1 (latest)

scenic slateBOT
#

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

jolly sparrowBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
#

╰( ͡° ͜ʖ ͡° )つ──☆:・゚˜”°•.˜”°• Many Help •°”˜.•°”˜*
Please provide a description of your issue with as much detail as possible. If you have an issue with a script provide the script. Explain what you can see happening and what you expect to happen. Be specific!

Tell us what is happening, we already know it "doesn't work".
Avoid using words like "it", tell us exactly what "it" is.
Don't assume anyone knows what you are talking about, be specific.

Provide screenshots or video of the issue, not the code or chat, if possible.

Provide the log.

nimble flame
#
event.custom({
"type": "immersivepetroleum:distillation",
"byproducts": [
{
"item": "thermal:bitumen",
"chance": "0.05"
}
],
"results": [
{
"fluid": "thermal:light_oil",
"amount": 20
},
{
"fluid": "thermal:heavy_oil",
"amount": 20
},
{
"fluid": "kubejs:tar",
"amount": 10
}
],
"input": {
"tag":  "kubejs:refine_oil",
"amount": 50
},
 "time": 2,
"energy": 2048
})
#

is there something i did wrong??

jolly sparrowBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

soft fiber
#

I don't know, you tell me

#

It's your issue, you tell me the details

nimble flame
jolly sparrowBOT
#

Paste version of server.txt from @nimble flame

soft fiber
#

holy thats a large log

nimble flame
#

its a big pack

soft fiber
#

I think you've been reloading a lot, because normally it should be way smaller

#

I take that back, you've been logging a ton of stuff

nimble flame
#

well yhea, its a mod pack im modifying

nimble flame
#

part

soft fiber
#

Show me the full script

nimble flame
#

ok

#

all of them?

soft fiber
#

Just whichever script that code you posted is from

nimble flame
jolly sparrowBOT
#

Paste version of added.js from @nimble flame

soft fiber
#

Is kubejs:refine_oil a tag or a fluid?

nimble flame
#

fluid

soft fiber
#

Well there's your problem

#

What's that say?

nimble flame
#

tag

#

how does one fix it??

soft fiber
#

Change it to fluid

nimble flame
#

ok

#

dosent work

carmine plume
#

what if you change it to name

#

also please send your logs instead of saying "doesn't work" without context

nimble flame
#

ok

jolly sparrowBOT
#

Paste version of server.txt from @nimble flame

nimble flame
#

negative

carmine plume
#

com.google.gson.JsonSyntaxException: Missing tag, expected to find a string
hmm

#

does it require a tag..?

#

that'd be a bit weird

nimble flame
#

yes

#

im messing with immersive petrolium recipes

carmine plume
#

can you try adding a tag to the fluid and use that tag in the recipe? i want to see if that does anything

nimble flame
#

will do

soft fiber
#

Why would it

carmine plume
#

i've seen some cases where that has happened

#

either that or i'm just being stupid again

soft fiber
#

Idk I might be the stupid

nimble flame
#

it worked

soft fiber
#

Can you try with just the fluid?

nimble flame
#
event.custom({
"type": "immersivepetroleum:distillation",
"byproducts": [
{
"item": "thermal:bitumen",
"chance": "0.05"
}
],
"results": [
{
"fluid": "thermal:light_oil",
"amount": 20
},
{
"fluid": "thermal:heavy_oil",
"amount": 20
},
{
"fluid": "kubejs:tar",
"amount": 10
}
],
"input": {
"tag":  "forge:crude_oil/refine",
"amount": 50
},
 "time": 2,
"energy": 2048
})
soft fiber
#

But can you try outputting a fluid

#

"fluid": "kubejs:refine_oil"

nimble flame
#

yes

#

only the inputs need tags

carmine plume
#

i mean, i haven't seen any immersive petroleum recipe not use tags..

nimble flame
#

true

soft fiber
#

Can I recommend smth Comfy?

#

Do you use an IDE?

nimble flame
#

improvised explosive device?

soft fiber
#

Integrated Development Enviroment

#

What do you use to code?

nimble flame
#

java

#

or whatever kjs is

soft fiber
#

What program do you write the code in

#

Is what I meant

nimble flame
#

VScode

soft fiber
#

VSCode is an IDE

nimble flame
#

ok then yea

#

i use that

soft fiber
#

You should use this extension

soft fiber
nimble flame
#

ok

#

is it automatic?

soft fiber
#

No, but all you have to do is right click in a file and hit "Format Document"

nimble flame
#

i installed it but i cant find what your talking about

soft fiber
#

View a JS file

#

Like this

#

Then right click anywhere in that area and press Format Document

#

Or left click if you have it inverted

nimble flame
#

ohh

#

that is nice

soft fiber
#

Ya it's super helpful

soft fiber
nimble flame
#

it works

soft fiber
#

Ayy, I'm not the stupid!

#

Okay cool, glad I could help ya

nimble flame
#

thx a billion for the extension