KubeJS (Old)

KubeJS (Old)

3M Downloads

Regex seems don't work to remove tag from item

Dovahkill opened this issue ยท 2 comments

commented

Minecraft Version

1.16.5

KubeJS Version

1605.3.19-build.299

Rhino Version

1605.1.5-build.75

Architectury Version

1.30.53

Forge/Fabric Version

Forge - 36.2.29

Describe your issue

Hello,

I'm trying to remove a tag by regex, but it doesn't work.

event.remove('minecraft:planks', /quark:vertical_(.*)_planks/)
OR
event.remove('minecraft:planks', [/quark:vertical_(.*)_planks/])

Same regex syntax works perfectly for removing recipes by output
event.remove({output: /quark:vertical_(.*)_planks/})

Thank's for amazing KubeJs

Crash report/logs

No response

commented

As c743fab added the functionality to 1.18.2+. I assume this will not be done for 1.16 anymore right? @MaxNeedsSnacks

commented

That's correct, this would be more of a hassle to do on the 1.16 side of things