Area Lib

Creating areas
Create areas using /area create
For example /area create <id> box ~ ~ ~ ~5 ~5 ~5 creates a 5x5x5 box area
Modifying area properties
Built-In
Some built-in properties, such as color and priority can be changed using
/area modify <id> <property> <value>
Components
Components can be set and removed using
/area modify <id> components (set|remove|get|copy_from) ...
Union areas
You can create union areas using \
/area create <id> union <...areas>
Adding additional sub-areas can be done using \
/area modify_composite <id> add <sub_area>
Similarly, ub-areas can be removed by running \
/area modify_composite <id> remove <sub_area>
Deleting areas
To completely delete an area use
/area delete <id>
Querying areas
To check which area you are currently in, use
/area query
Functionality Note
Note that these areas don't do anything by themselves, but require additional mods that can implement specific functionality for them. For example area-tools adds various area related tools using this library
Documentation
Partial documentation is available here
How to Install Area Lib (Mod)
Area Lib by Tomate0613 is verified for Fabric across Minecraft versions 1.20.1, 1.21.1, 1.21.10, 1.21.11, 1.21.7, 1.21.8, 26.1, 26.1.1 (latest release: 0.9.1+26.3, file size: 84 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.21.1, 1.21.10, 1.21.11, 1.21.7, 1.21.8, 26.1, 26.1.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Area Lib file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 1mo ago | 1 | ||||
| 1mo ago | 1 | ||||
| 1mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
- fix crash on gui tick with default keybind
- update to 26.3
- add intersection areas
- add difference areas
AreaSavedData#removenow throws an error if the area is a dependency
- bugfixes
- improve performance
- deprecate
AreaSavedData#getServerDatain favor of newAreaLib#getSavedData(MinecraftServer)
- make value optional for
/area modify <id> components set <component_type> [value]
Areas will still get synced in play phase when areas get modified
- Make area components use codecs for (de)serialization
- Rename various methods and classes to more fitting names
- Move saved data from overworld data to world data
- Add /area modify components
- Show overlay when toggling rendering
- Split out tracking components into entity tracked components and sampled components
- Set compat version as 26.1.x
- Improve
findTrackedAreasContainingand union area performance - Make
BVHNodenot generic - Make gizmo style component a normal component
- Add experimental event listener system
- Update to 26.1
- Update to 1.21.11
- Move area rendering to new gizmo system
- Replace
/area modify <id> colorwith new/area modify <id> gizmo_style stroke_color | stroke_width | fill_color
- make area-lib work client optional
- add
/area modify [id] replace_shape - add
/area list
- Rename
AreaSavedData#findAllAreasContainingtoAreaSavedData#findAnyAreaContainingand add workingAreaSavedData#findAllAreasContaining - Add
Area#copyComponentsFrom - Add
copy_components_frommodify command
- Rename
AreaSavedData#findAllAreasContainingtoAreaSavedData#findAnyAreaContainingand add workingAreaSavedData#findAllAreasContaining - Add
Area#copyComponentsFrom - Add
copy_components_frommodify command
- Rename
AreaSavedData#findAllAreasContainingtoAreaSavedData#findAnyAreaContainingand add workingAreaSavedData#findAllAreasContaining - Add
Area#copyComponentsFrom - Add
copy_components_frommodify command