Skip to content
Tomate 06 13 edited this page Apr 9, 2026 · 5 revisions

Important

Docs for >=0.8.0 version is currently here

Getting Started

To get started use the Modrinth Maven to add this mod as a dependency

repositories {
   /* ... */

    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    /* ... */

    modImplementation "maven.modrinth:area_lib:${project.area_lib_version}"
}

AreaLib Entrypoint

You can retrieve the AreaSavedData using:

AreaLib.getSavedData(Level)

Additionally, you can directly access an area using:

getServerArea(MinecraftServer, ResourceLocation)

and

getClientArea(ResourceLocation)

AreaSavedData

The AreaSavedData stores all areas and is automatically synchronized with all clients.

To get a specific area you can use the AreaSavedData#get(ResourceLocation) method

Area

To check if a position is inside an area use Area#contains(Level, Vec3)

Additionally Area#contains(Entity) can be used as a shortcut

Clone this wiki locally