#any idea why this makes a list of [null]?

21 messages · Page 1 of 1 (latest)

cunning edge
#

tried using forge:ores and c:ores (both of which should work), not sure why it's all null

chilly lanternBOT
#

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

umbral jacinthBOT
#

Paste version of ore_tags.js from @cunning edge

zinc pecan
#

why would c:ores work hmmm

cunning edge
#

no idea! it's listed as a tag when i look in rei though

zinc pecan
#

O.o

cunning edge
#

but forge:ores does the same thing and has the same problem

zinc pecan
#

are you trying to get a list of items that have the tag?

cunning edge
#

yes

#

and stick it into a json file

zinc pecan
#

try this

ServerEvents.recipes(e => JsonIO.write('kubejs/ore_tags.json', {tags: Ingredient.of('#forge:ores').itemIds}))
cunning edge
#

in recipes???

#

oh my god that makes my life so much easier

zinc pecan
#

cuz by then (recipe event) tags should be fully loaded, which eliminates a potential issue with the previous one

cunning edge
#

this whole thing is leftover from kjs 5 when i had to do tags and recipes in a separate event, didn't realize i could just put them in the same script now

zinc pecan
#

oh lol

#

im pretty sure that was a thing back then too

cunning edge
#

bruhhh

#

welp thank you for your help

zinc pecan
#

:D