#Added recipes with ItemStack result is empty?

22 messages · Page 1 of 1 (latest)

cedar wadi
#

Basically I remove the old recipes from items (from pretty pipes) and add new ones

blazing badgerBOT
#

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

cedar wadi
empty laurel
#

??kjserrors

errant robinBOT
# empty laurel ??kjserrors

The ItemStack '...' can't be empty, Can't modify the empty stack or Item.empty is not a valid result errors mean that the ID you provided your script is invalid.
For example:

e.shapeless('kubejs:some_item_that_doesnt_exist', 'diamond')

The above script would error, given that the item with the ID kubejs:some_item_that_doesnt_exist doesn't exist.

cedar wadi
empty laurel
#

??code

errant robinBOT
# empty laurel ??code

🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.

cedar wadi
errant robinBOT
#

Paste version of pretty_pipes_fix.js from @cedar wadi

empty laurel
#

line 39, you forgot a comma
line 60, the id prettypipes:low_fluid_extraction_module isn't correct

#

??editor heh

errant robinBOT
# empty laurel ??editor <:heh:504730156792021002>

If you're working with KubeJS scripts, config files, or similar things, we generally recommend using an actual IDE rather than just Notepad++ and its various siblings.
In a lot of cases, it can help you find errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, etc!
We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

cedar wadi
#

yeah the id is the same

#

yeah...

#

I got it I think

#

The recipe for some items is not showing ingame

#

Can a recipe be hardcoded?

#

and just break when you try and change it?

#

yeah well, typo in 3 lines

#

Thanks