Item Obliterator (Modpack Utils Series)

Item Obliterator (Modpack Utils Series)

23M Downloads

Question - How to read example "disable all swords" exactly [solved]

wantedkeks opened this issue · 6 comments

commented

Hej there,

I just discovered that fancy mod.
In general, I dont have major problems to use it disabling specific items or a group of items.

I wonder how to read the given example "!minecraft:.*_sword"
"" = that is one entry
minecraft = modid
_sword = end of item id

What tasks do the other tiles have?
! is telling what?
.* says what?

Firstly I am curious to read the code right.
In addition, I am also looking for how to blacklist yellow stuff or all "stained" (glass) as example.
"!minecraft:.*yellow%",
"!minecraft:.*stained%"
% = dont know how to fill the line correctly.

Thanks!

commented

dont know if i can help, how is your config file looking?

commented

The config file works perfectly fine as of now, albeit very cluttered due to the amount of items removed, but attempting to do anything involving regex just doesn't work. I did see another issue later on that talked about this, so i'm inclined to believe that it's likely not a fault of mine when it comes to formatting.

Image Image Image Image Image

If regex really isn't working anymore then there's simply nothing I can do at the moment until the mod gets updated to fix that, but in either scenario I appreciate the response!

commented
Image

Weird. I've been trying to do this for around 30 minutes, and yet the example isn't working.
Even inputting "!minecraft:.*stained.*" as said in the post above doesn't work.

Image

Any help on this would be appreciated

commented
commented

Thanks for the keyword, that helped!
"!minecraft:.*stained.*" now blacklists every stained (glass) stuff.

/closed

commented

@pedro9006 it's right there in the comments for use_hashmap_optimizations,
if it's true then regex will NOT work.