#FTB Stuff and Things Jars script errors

46 messages · Page 1 of 1 (latest)

lone ingot
#

I have been trying to work this script for 4 days now and keep getting 56 errors for all the jars about fluid output. I have looked at other examples of 1.21.1 scripts for the jars, but couldn't find where i made my mistake. I have also ran this through Gemini and still couldnt figure it out i have attached the Script, Kubejs log, and latest log for the modpack. i know there are other things i need to fix with sluicing and recipes. if anyone could assist it would be greatly appreciated.

river sandalBOT
#

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

cunning tide
#

You didn't attack the files (log, script)

lone ingot
chrome mothBOT
#

Paste version of jars.js, server.log, latest.log from @lone ingot

cunning tide
#

you must omit the key and not use an empty array

#

some mods support this but this one doesn't

#

so do:

let json = {
  type: ...,
  temperature: ...,
  time: ...
}
if(recipe.outputFluids != undefined){
  json.output_fluids = ...
}
...
event.custom(json)
lone ingot
#

would i be changing all the event custom the same way? or just the output?

lone ingot
chrome mothBOT
#

Paste version of jars.js, server.log from @lone ingot

lone ingot
chrome mothBOT
#

Paste version of jars.js, server.log from @lone ingot

lone ingot
chrome mothBOT
#

Paste version of jars.js, server.log, latest.log from @lone ingot

lone ingot
#

i shrunk the jars file down just to get it to work. but i am still getting an output fluid of 1mb of lava. please assist with this fix

chrome mothBOT
#

Paste version of jars.js from @lone ingot

lofty comet
lone ingot
#

I am trying to get it to not give me any fluids

#

If I change the amount to 0 it fails for fluid stack

lofty comet
#

so u want to get item only?

lone ingot
#

that is correct. input fluid and item, and only receive item back.

lofty comet
#

so... whats the problem? just remove output fluid "value"

lone ingot
#

when i remove the value i get an error

#

if i completely remove the line about output fluids same error

chrome mothBOT
#

Paste version of server.log from @lone ingot

lofty comet
#

post your current script

lone ingot
chrome mothBOT
#

Paste version of jars.js from @lone ingot

lofty comet
#

@lone ingot this is exactle the same script as last one

lone ingot
chrome mothBOT
#

Paste version of jars.js from @lone ingot

lofty comet
#

no

#

no no no

#

this is not correct way

#

here

#
ServerEvents.recipes(event => {
  event.custom({
    type: "ftbstuff:jar",
    temperature: "normal",
    time: 200,
    stage: "none",
    can_repeat: true,
    input_items: [
      { item: "minecraft:glowstone", count: 8 }
    ],
    input_fluids: [
      { fluid: "minecraft:lava", amount: 8000 }
    ],
    output_items: [
      { id: "minecraft:end_stone", count: 8 }
    ]
  }).id("ftbstuff:jars/test_glowstone")
})
lone ingot
#

ill give it a shot

chrome mothBOT
#

Paste version of server.log, jars.js from @lone ingot

lofty comet
#

@lone ingot

#

remove last ","

lone ingot
chrome mothBOT
#

Paste version of jars.js, server.log from @lone ingot

lofty comet
#

wtf