#un-hide a recipe category from JEI

32 messages · Page 1 of 1 (latest)

hexed tusk
#

how could i un-hide a recipe category from JEI that is hidden by default? specifically, Thermal Foundation adds a recipe category for its arboreal extractor that is only visible in JEI if Thermal Expansion is added, and i wish to make this recipe category visible even without Thermal Expansion (as i just want Foundation's content for my modpack and not the tech-heavy stuff from Expansion).

indigo terraceBOT
#

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

gloomy shard
#

i dont think thats possible

#

well theres definetely no event for it

#

if its not a config option in thermal, then its probably not possible to do

#

unless you modify thermal itself or use mixins to do so

#

but that would require a mod

limpid crescent
#

thermal is fun to mess with

junior lintelBOT
#

[Quote ➤](#1057246551556235284 message) Also works for making it show coins and the like. Basically anything that's hidden by default but exists.

const $ThermalFlags = java('cofh.thermal.lib.common.ThermalFlags')
$ThermalFlags.setFlag($ThermalFlags.FLAG_PLATES, true)

Goes in startup_scripts, requires disableClassFilter in common.properties to be set to true.

limpid crescent
#

this should work

#

provided its controlled by a flag

#

hm, doesnt seem like it

#

ah

#

it just uses ids

gloomy shard
#

i hate that thermal has hardcoded stuff like that

limpid crescent
#
const $ThermalIDs = Java.loadClass('cofh.thermal.lib.common.ThermalIDs')
$ThermalFlags.setFlag($ThermalIDs.ID_DEVICE_TREE_EXTRACTOR)
#

that should enable everything to do with the tree extractor

limpid crescent
#

quark oditties is literally an empty jarfile that has a modid, and quark checks for that modid to see if oditties is loaded

gloomy shard
#

oh wow

#

....why

#

quark already has a config system... wtf

#

is it just for money

limpid crescent
#

i think its so that removing a mod removes the blocks, as opposed to just changing a config

#

forge really doesnt like dynamic registration via config so it was really hard to do

#

doing a seperate mod with modid check was much easier

gloomy shard
#

but the blocks arent dynamically registered

#

theyre just made unobtainable

limpid crescent
#

yeah, idk

#

maybe once upon a time it was different

hexed tusk
# limpid crescent ```js const $ThermalIDs = Java.loadClass('cofh.thermal.lib.common.ThermalIDs') $...

ayyy, thanks! i did need to add a , true to the setFlag to get it to work, and i also added the import for $ThermalFlags figuring that it's probably needed... and it works!
for future ppl, here's what the final code looks like:js const $ThermalFlags = Java.loadClass('cofh.thermal.lib.common.ThermalFlags') const $ThermalIDs = Java.loadClass('cofh.thermal.lib.common.ThermalIDs') $ThermalFlags.setFlag($ThermalIDs.ID_DEVICE_TREE_EXTRACTOR, true)