#(It's JEI's fault) KubeJS 6.1-build.364 can't hide custom KubeJS items anymore for some reason

135 messages · Page 1 of 1 (latest)

sharp obsidian
#
JEIEvents.hideItems(event => {
    event.hide('mysticalagriculture:harvester')
    event.hide('kubejs:denied_result')
    event.hide('kubejs:removed_item')
})

It's able to hide items from other mods, but it says:

15:43:14.073
mezz.jei.gui.ingredients.IngredientFilter
Render thread
Could not find a matching ingredient to remove: 1 removed_item kubejs:removed_item
15:43:14.074
mezz.jei.gui.ingredients.IngredientFilter
Render thread
Could not find a matching ingredient to remove: 1 denied_result kubejs:denied_result

Forge version when noticing this: 43.2.21
client.log is fine as well, no errors.

valid grottoBOT
#

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

glacial acorn
#

imagine having syntax coloring in a log file 🗿

tranquil gust
#

am i tripping?

glacial acorn
glacial acorn
#

at least I hope so... pepecross

tranquil gust
#

are we both?!

sharp obsidian
#

It's a custom text renderer lol

glacial acorn
#

but... why?

sharp obsidian
#

I hope snownee adds glitchy text effects in the future XD

glacial acorn
#

"unyielding realms - the last stand" hih

#

aka the 14yo's pack

sharp obsidian
glacial acorn
#

how? heh

sharp obsidian
#

I don't know why it keeps registering as .png

#

Maybe it's a .apng?

glacial acorn
sharp obsidian
#

Actually lemme try downgrading to Forge 43.2.14 if that somehow causes this to happen
Edit: It's definitely build 364

#

I downgraded to build 362 and it's still occurring...
That's very weird

#

Going to cross check with Genesis to see if it's mod specific

glacial acorn
#

can you try the jei's hiding file?

#

it's somewhere in the jei's config

sharp obsidian
#

Which one would it be?

glacial acorn
tranquil gust
glacial acorn
#

blacklist.cfg

sharp obsidian
#

The thing is, both of my modpacks are using the same JEI version

Going to check now if it's actually build 364 or a mod is causing this to happen since Genesis isn't affected by this issue

#

Now it's occurring on Genesis and Mote ...I wonder if it's one of the other mods I updated.

Testing the two possible causes that I'm guessing might be causing it
Edit: Nope, wasn't either of them

#

Okay... so, build 364 by itself with KJS Create build 29 is able to hide custom items from JEI so it's a mod conflict with something else somewhere pain

#

Is it /reload then /kubejs reload client_scripts

or

/kubejs reload client_scripts then /reload?

sharp obsidian
#

Nope, still there

#

In the instance with KubeJS + KJS Create and Text Animator I just did a combination of /reload and /kubejs reload client_scripts which worked

#
JEIEvents.hideItems(event => {
    event.hide('kubejs:denied_result')
    event.hide('kubejs:removed_item')
    event.hide('mysticalagriculture:harvester')
    MYSHIDE.forEach(name => {
        event.hide(`mysticalagriculture:${name}_essence`)
        event.hide(`mysticalagriculture:${name}_seeds`)
    })
    CAdditionsItems.forEach(name => {
        event.hide(`createaddition:${name}`)
    })
})

Is there anything wrong here? I know I tend to miss typos a lot

sharp obsidian
#

Theoretically there shouldn't be anything wrong since it hides everything else except custom KubeJS items which is making me confused as to why it's able to hide custom items when installed by itself

fair ledge
#

@sharp obsidian remove the color of Removed Item

#

do it via Rarity

sharp obsidian
#

Then why did it work in previous versions then?

#

I'll downgrade to build 352 and see if it works after I get back home

sharp obsidian
#

But basically I made sure those items were always hidden before each release to CF

Just to plan ahead... is it possible to make your own rarities?

#

If not then that's not going to be a solution for me

fair ledge
loud holly
#

i don’t get why i was pinged here?

#

i haven’t changed anything about jei

#

in ages

fair ledge
#

did you delegate how filter works?

#

ingredient filter

#

on recent versions

#

and if yes, JEI is currently not supporting Chat Format codes on Item names for < 1.19.4 versions

#

when trying to filter match

fair ledge
sharp obsidian
#

I guess I'll work with REI

loud holly
#

this is exclusively for bulk replacement in recipes

fair ledge
#

@sharp obsidian did you at least try to remove the color to see if this is the issue?

sharp obsidian
#

I'm still at a restaurant

fair ledge
#

@sharp obsidian you can still work with JEI, just add this item to blacklist.cfg inside config folder

#

it will hide

sharp obsidian
#

JEI doesn't have a user oriented Wiki, so I'm unsure how to use it.

fair ledge
#

how to use the blacklist.cfg?

sharp obsidian
#

Yeah, I don't know how to use it

fair ledge
#

literal this, just open and type all you want

kindred lantern
kindred lantern
#

or rather it's modified to extendable

fair ledge
#

well what the F am I loading then

#

are you on which ver?

fair ledge
kindred lantern
#

Rarity class in the Forge MDK

#

If you use arch, it probably doesn't show up

fair ledge
#

remember to click scope boys

#

lmao

sharp obsidian
fair ledge
#

what?

#
kubejs:denied_result
kubejs:removed_item
sharp obsidian
#

That's the format I commonly see in .toml and some .cfg config files: ["item", "item"]

fair ledge
#

yes, this file is custom

#

¯_(ツ)_/¯

#

looks good to me because it only hides, there is no need to overcomplicate

#

@kindred lantern I wanted some guidance with gradle or whatever need to generate all .java files from curseforge that i add to gradle with implementation fg.deobf(...............) to gradle.build

do you have any idea?
the goal is so I can have a more accurate search when looking for stuff like methods/params etc

#

currently I need to check their repo on github, find the right branch, check version if match, download and add to Library Settings

kindred lantern
fair ledge
kindred lantern
fair ledge
#

yes the jar files but it is only like this:

#

twilight forest in this example

#

no source or decompiled java inside a jar

#

like this one:

sharp obsidian
#

Just got back home

#

You are correct that it's the display name character causing the issue of not hiding the items blobCozy

#

KubeJS 6.1-build.364 can't hide custom KubeJS items anymore for some reason (It's JEI's fault)

fair ledge
#

@sharp obsidian anyway, you can create a rarity 🙂

sharp obsidian
#

I don't know how though

fair ledge
#

you can only with mod

#
Minecraft Wiki

Rarity is a statistic applied to items and blocks to signify their value and ease in obtaining. It has no effect on gameplay whatsoever.
The only way to change an item's rarity is to enchant it, which brings its rarity from Common or Uncommon to Rare, or from Rare to Epic.

#

choose one of those colors

sharp obsidian
fair ledge
#

can't win everyday hug

#

@sharp obsidian what if your coloring mod adds new rarity and you just don't know?

#

🫣

sharp obsidian
#

It doesn't do that

fair ledge
#

are you

#

sure? pepethink

#

what is the name?

sharp obsidian
#

Text Animator

sharp obsidian
#

Does REI have this issue though?

fair ledge
#

i have absolutely no idea, but if you use some JEI events I think you will need to change/update

#

@sharp obsidian now why this problem only happened at current KubeJS version?

#

you added Color at same time?

#

or it was coloured since begining?

sharp obsidian
#

I'm going to see if it occurs on build 352 first

#

It was colored since beginning

fair ledge
#

as I said you can still use the blacklist.cfg stuff

sharp obsidian
#

I'm beginning to doubt myself though... they're still visible on 352
I really remember the items not being visible

fair ledge
#

you broke when you added color to it, do you remember when?

sharp obsidian
#

This is what happens when REI is implemented

#

It works with the JEI events which is surprising
Edit: Going to close the ticket for now.

sharp obsidian
#

(It's JEI's fault) KubeJS 6.1-build.364 can't hide custom KubeJS items anymore for some reason