#Is there a way to tag everything from a recipe output?

44 messages · Page 1 of 1 (latest)

hasty mulch
#

I want to be able to tag all the outputs of the botania:marimorphosis/metamorphic_{biome}_stone recipes (edit: ideally, any of the marimorphosis recipes actually, in case I ever decide to add some of my own) into a tag #botania:metamorphic_stones, but can't figure out an efficient way to do it from the tutorials. There feels like there should be a way, but I can't find something that doesn't segfault for the life of me

serene heartBOT
#

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

winged crypt
#
e.add('botania:metamorphic_stones', /^botania:marimorphosis\/metamorphic_.+_stone$/)

put that in your tag event

hasty mulch
#

I forgot about the regex option. Isn't there a way to add everything in the marimorphosis recipe category though?

winged crypt
#

not sure what you mean by recipe category

#

recipes also dont exist during tag event

#

cuz recipes use tags

hasty mulch
#

botania:marimorphosis/metamorphic_swamp_stone and botania:marimorphosis/metamorphic_desert_stone are two different recipes, but in the same marimorphosis category. Sorry if I'm not explaining this well

winged crypt
#

are these recipe IDs?

hasty mulch
hasty mulch
winged crypt
#

trying to process what youre asking

#

xD

#

are the output items not similar in their ID to use regex?

#

like i said recipes dont exist, so you cant take the output of a recipe and add a tag to that item

#

cuz recipes dont exist

hasty mulch
#

would something like e.add('botania:metamorphic_stones', {id:botania:marimorphosis\/*.}) do it? Sorry, I'm absolutely awful at regex

winged crypt
#

no~

#

not sure what that would even imply

unkempt crown
#

tags load before recipes. tags cannot be recipe dependent.

hasty mulch
#

I really wanted to add all the different metamorphic stones that can be created with Botania's marimorphosis flower into a tag so that I could whitelist that tag with the veinmining mod I'm running, but I suppose I could just do them all manually. It wouldn't be much more work than trying to figure something out for this

#

just a pain

serene heartBOT
#

Ticket closed!

winged crypt
#

i dont get why you cant just use the regex i provided in the first message

hasty mulch
#

cause that's recipe id based.

winged crypt
#

what are the items' IDs?

hasty mulch
#

I'll check in a moment. Right now I'm being told that my kubeJS test world needs safe mode and getting a massive MouseClicked handler crash when I try to create a new one. Nothing can ever be easy apparently

winged crypt
hasty mulch
#

no, you're right, that regex will work. I've just had it drilled into me that Regex is a Last Resort because it can go berserk if it isn't handled properly

winged crypt
#

to me its often the first choice

#

xD

hasty mulch
#

I typically work in Python or Shell (terminal) scripts with root access, so a regex running wild is one of my worst nightmares.

#

yours works though, thanks!

winged crypt
unkempt crown
winged crypt
serene heartBOT
#

Ticket re-opened!

hasty mulch
#
  event.add('forge:stone', '#botania:metamorphic_stones')```
@winged crypt @unkempt crown (sorry for the ping) that should add everything from the regex to `forge:stone` too, right?
#

it didn't seem to add any tags at all 😦

#

I'm an idiot, never mind. I just need to use the block namespace instead of the recipe namespace. And get some sleep, probably