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
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
- Add null check when creating union area
- Add sphere area
- Stop tracking deleted areas
- Fix crash
- Fix multiple issues with empty BVH trees
- Fix
/area query
- Prevent duplicate entries in BVHTree
- Add tracked components system
- Add has and remove method on Area
- Remove getSavedData on BVHTree
- Add getAreasContaining to CompositeArea
- Make bounding box not nullable
- Add area component system
- Make areas have a reference to their own id
- Delete BlockArea
- Deprecate block areas
- Add box areas
- Implement composite areas (Currently only
union) - General code cleanup
- Add area priority
- Add
/area query
- Add keybind to toggle rendering
- Disable rendering by default
- Fix rendering