KubeJS (Old)

KubeJS (Old)

3M Downloads

Add Regex Support to `RemoveAllTagsFrom` Event

elementsplayer opened this issue ยท 1 comments

commented

Describe the feature

As the title.

Additional info

I think regex is not support since the wiki say string only.
image
This will be nice that no needs to type all item, just some simple regex.

commented

It should suppport it, you just need to wrap the regex as a string. For example:

event.removeAllTagsFrom('/minecraft:.*axe/')

will remove all tags from all pickaxes and axes from minecraft.