#Recipe Ingredients

21 messages · Page 1 of 1 (latest)

storm nacelle
#

I feel like I have gotten close to figuring it out, but not quite. This current script works, but I was hoping to add some specific tag data for the ingredients. Right now it accepts any laputa shard, and I wanted it to specifically require a laputa shard with tag: (level:19)

Am I able to specify NBT for ingredients?

wise pawnBOT
#

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

high thicketBOT
#

Paste version of recipes.js from @storm nacelle

ashen swift
#

Hold the Item Run /kubejs hand, add .strongNbt() after the closing bracket and Paste it instead of the json Objekt {item:...} kubejs should Auto converted to the correct Format for items in json

storm nacelle
#

thats funny, I was able to get that far after looking a little deeper at some other peoples support questions, but I think I'm still missing something, kube says there is an error in line 25

high thicketBOT
#

Paste version of recipes.js from @storm nacelle

storm nacelle
#

ohhhh the .strongNBT()

#

let me try that

ashen swift
#

You also need to replace the { and }

storm nacelle
#

so wait, where does the .strongNBT go? sorry, im VERY new to this

ashen swift
#

Item.of(...).strongNbt()

storm nacelle
#

okay, so then replace the { } with []?

ashen swift
#

You remove them

storm nacelle
#

Item.of('botania:laputa_shard', 'level:19').strongNBT()

#

or Item.of('botania:laputa_shard').strongNBT('level:19')

#

ohhhhh you meant the {} before and after the whole Item.of

#

I think its working now

#

thanks for your patience, lol

#

as I said, still quite new to this, scripts in general tbh

high thicketBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue! This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should generally create a new post for unrelated issues.