Modscraper Modscraper Minecraft
ObserverLib logo

ObserverLib

Mod

by HellFirePvP

A Library mod that allows for generic area observation.

Type

Mod

CurseForge Downloads

18,165,234

CurseForge ID

316833

Last Updated

Sep 5, 2026

Description

ObserverLib is a library mod, usable to reliably observe block changes in a potentially large area with very little performance implications.

 

The library is publicly usable and is primarily focused to be used in Astral Sorcery from 1.13+.

 

In essence this mod allows you to register an Observer - whatever it observes in the end is up to the implementation - for a specific area. Changes that happen in the world in its observed area are passed onto the Observer. The observer can then decide on its own what these changes mean; if they invalidate or validate the observer's state. So for example if the structure is now complete or not.

 

The actual call to check if things are valid or not is to query the ChangeSubscriber at the relevant position and then ask if its current state is valid or not.

 

What makes this better than generally just repeatedly checking a large area? What happens if the area you want to observe is larger than a chunk? What happens if the other chunk you have to check becomes unloaded? In order to be sure nothing has changed and the structure is intact, a mod would have to load said chunk and check the block. Potentially an issue if this causes a lot of chunk loading and unloading. The Implementation of ObserverLib makes sure you can relax and the changes passed onto your implementation of notifyChange contain all necessary information to make sure whatever you're observing is still valid or not.

 

One exemplary implementation for checking if a structure is built correctly or not can be seen here. Instead of always checking everything of the structure's components, the check makes sure to track the positions that are incorrect/mismatching and only works based off of mismatches to what the matcher expects.

 

If you're interested in using it for your own projects, you can grab it from maven here: https://maven.hellfiredev.net/hellfirepvp/observerlib/observerlib/ 

 

For further explanations and details, feel free to ask on the AstralSorcery discord: https://discord.gg/q37VRcT

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

Included in Modpacks (83)

Show fewer
All in One [Modded One Block] All in One [Modded One Block] Valhelsia 3 Valhelsia 3 Valhelsia 2 Valhelsia 2 Enigmatica 6 - E6 - 1.16.5 Enigmatica 6 - E6 - 1.16.5 All the Mods 6 - To the Sky - ATM6sky - Skyblock All the Mods 6 - To the Sky - ATM6sky - Skyblock All the Mods 5 - ATM5 All the Mods 5 - ATM5 Ragnamod VI Ragnamod VI Sky Bees Sky Bees Enigmatica 6: Expert - E6E Enigmatica 6: Expert - E6E Stacia Expert Stacia Expert Sky Bees 2 Sky Bees 2 TNP Limitless 3 - LL3 TNP Limitless 3 - LL3 Chroma Sky 2 Chroma Sky 2 MC DripCraft MC DripCraft The Decursio Project - Expert The Decursio Project - Expert Azuria RockBlock 3 Azuria RockBlock 3 StonksCraft 2 StonksCraft 2 Valhelsia: Origins Valhelsia: Origins Black Clover Resolution Black Clover Resolution Ragnamod VI In the Sky Ragnamod VI In the Sky Odyssey: Space - A New Beginning Odyssey: Space - A New Beginning ABOE 3 - A Bit of Everything 3 ABOE 3 - A Bit of Everything 3 Dungeons, Dragons and Space Shuttles 2 Dungeons, Dragons and Space Shuttles 2 City Life 2 City Life 2 Chroma Endless Chroma Endless Sky Farm Sky Farm Strictly Medieval [FORGE] Strictly Medieval [FORGE] Crazy Crave 5 Crazy Crave 5 Explorico Classic 1.16.5 Explorico Classic 1.16.5 Project Isothermal Expert Project Isothermal Expert Crazier Crazy Craft Crazier Crazy Craft Lunaria Expert Lunaria Expert Sky Alchemist Sky Alchemist Astral Engineering Astral Engineering Black Hole Black Hole Techno Magic - Trustworthy Techno Magic - Trustworthy HarvestBlock 2 HarvestBlock 2 Stacia Stacia BetterEnd BetterEnd Gloomy  Rise Gloomy Rise Blocks Of The Sky Blocks Of The Sky Arcane Twilight Arcane Twilight Dragons, Magic and Weird Creatures Dragons, Magic and Weird Creatures EMCWorld EMCWorld CrazyCraftEvolution CrazyCraftEvolution  Astral Sorcery Modpack Astral Sorcery Modpack VenomCraft VenomCraft The Rebirth of Nevermine The Rebirth of Nevermine nuclear radiation 2 nuclear radiation 2 Gamer Girl´s pack Gamer Girl´s pack Attack Of The Reloaded B-Team Attack Of The Reloaded B-Team Draconic Infinity : Chapter 2 Draconic Infinity : Chapter 2 Demon Slayer! Demon Slayer! Chivalry and Wizardry [Forge 1.16.5] Chivalry and Wizardry [Forge 1.16.5] DirtBlock DirtBlock Vampires werewolfs and hunters Vampires werewolfs and hunters Cosmoblock Cosmoblock ZobraCraft ZobraCraft Ice and Fire Vs Wyrmroost Ice and Fire Vs Wyrmroost Berseria Sky Berseria Sky Black Clover Enhanced Black Clover Enhanced MagicCraft: Choose your magic path MagicCraft: Choose your magic path NeoForge Lite NeoForge Lite Poppy Craft Poppy Craft QuestCraft BR QuestCraft BR Compact Sky Compact Sky Mod Backpack Mod Backpack Skies of Progression Skies of Progression Furry Forestry 4 Furry Forestry 4 AI Adventures AI Adventures TechBlock - SkyTech 3 TechBlock - SkyTech 3 shaxx's mechs and myths shaxx's mechs and myths Elden Blocks Elden Blocks Medival Chaos Medival Chaos All In One Extended by Wazon All In One Extended by Wazon The French Baguette The French Baguette Fun n' Guns Fun n' Guns Soulcraft‎‎‏‏‎ ‎ Soulcraft‎‎‏‏‎ ‎ Tech & Survival Tech & Survival Craftorio Craftorio Explore the Bright World Explore the Bright World Vertuo Hosting Modpack Vertuo Hosting Modpack Breaking Glass Breaking Glass

External Resources