#[1.20.1] Remove REI Info from Modded Items?
8 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
event.addAdvanced("mod:item_with_tooltip", (item, advanced, text) => {
text.removeIf(line => line.getString().includes("remove_line_if_contains_this"))
})
addAdvanced doesn't seem to exist in 1.20.1, unless I'm looking in the wrong place? https://github.com/KubeJS-Mods/KubeJS/blob/2001/common/src/main/java/dev/latvian/mods/kubejs/integration/rei/InformationREIEventJS.java
Ah, addAdvanced is under ItemEvents.tooltip, not REIEvents.information - that's what I need to remove
Can you show what "REI Info" do you mean?
I mean this kind of thing
You can add REI information using add in REIEvents.information, but you can't remove preexisitng info for some reason, at least not as far as i've seen