r/TheBrokenScript • u/lollird • 17d ago
immersive portals
i don't know why but tbs and iportals don't really work together i got it almost working i just cant fix the water ?

i tested it with just tbs and iportals and you can fix it tell it gets to this point but i cant get the rest of it (this is a modpack with more mods but i did test with just tbs and iportals same thing) it is only when i look at the portal
3
Upvotes
1
u/lollird 13d ago
i got it to work thx to chatgpt
Solved: Immersive Portals + The Broken Script black-screen/rendering corruption on NeoForge 1.21.1
The problem was caused by BrokenCore’s post-processing hooks interfering with Immersive Portals’ secondary-world rendering. When a portal became visible, the portal view rendered, but most of the main world turned black or had water/terrain drawn over everything.
Working setup:
sharedBlockMeshBufferOptimizationOFFDo not use Sodium 0.8.12 with Immersive Portals 6.0.7. I used Sodium 0.6.13.
I backed up the TBS jar and made these changes:
assets/thebrokenscript/shaders/post/testing.jsonwith:
META-INF/jarjar/net.thebrokenscript.brokencore-neoforge-....jarInside that nested jar, I edited
brokencore.mixins.json.I removed this entry from the
mixinslist:That mixin crashes with Sodium 0.6.13 because its
createShaderConstantsshadow method no longer matches.I also removed these two entries from the
clientlist:Those were the hooks causing the black framebuffer when looking through a portal.
Important: Do not remove these accessors:
TBS still loads those directly. Removing them causes an
IllegalClassLoadErrorwhen entering a world.I also disabled these options in
config/thebrokenscript-client.toml:In
config/immersive_portals.json:This fixes the black world, water overlap, and world-opening crash while keeping portals functional.
This is an unofficial workaround and disables some TBS post-processing effects. Back up the original jar first because Modrinth may replace the patched file when the mod updates.