#Recipe Issue
91 messages · Page 1 of 1 (latest)
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.
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??
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.
Paste version of server.txt from @nimble flame
holy thats a large log
its a big pack
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
well yhea, its a mod pack im modifying
Is this the full script?
part
Show me the full script
Just whichever script that code you posted is from
Paste version of added.js from @nimble flame
Is kubejs:refine_oil a tag or a fluid?
fluid
Change it to fluid
what if you change it to name
also please send your logs instead of saying "doesn't work" without context
Paste version of server.txt from @nimble flame
negative
com.google.gson.JsonSyntaxException: Missing tag, expected to find a string
hmm
does it require a tag..?
that'd be a bit weird
can you try adding a tag to the fluid and use that tag in the recipe? i want to see if that does anything
will do
i've seen some cases where that has happened
either that or i'm just being stupid again
Idk I might be the stupid
Can you try with just the fluid?
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
})
i mean, i haven't seen any immersive petroleum recipe not use tags..
true
improvised explosive device?
VScode
VSCode is an IDE
You should use this extension
It'll fix your code to not have space
No, but all you have to do is right click in a file and hit "Format Document"
i installed it but i cant find what your talking about
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
Ya it's super helpful
Hows this going btw? ^^
it works
thx a billion for the extension
