All Mods Resource Packs Data Packs Shaders Modpacks Plugins
A

Area Lib

by Tomate0613 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Area Lib

screenshot showing an area

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
26.3
Fabric
1mo ago 1
26.3
Fabric
1mo ago 1
26.1.x
Fabric
1mo ago 1
26.1.x
Fabric
6mo ago 1
26.1.x
Fabric
6mo ago 1
26.1.x
Fabric
6mo ago 1
26.1.x
Fabric
7mo ago 1
26.1
Fabric
7mo ago 1
26.1
Fabric
7mo ago 1
26.1
Fabric
7mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.10
Fabric
9mo ago 1
1.21.8
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.8
Fabric
last yr. 1
1.21.7
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
  • fix crash on gui tick with default keybind
  • update to 26.3
  • add intersection areas
  • add difference areas
  • AreaSavedData#remove now throws an error if the area is a dependency
of a derived area
  • bugfixes

  • improve performance
  • deprecate AreaSavedData#getServerData in favor of new AreaLib#getSavedData(MinecraftServer)
  • make value optional for /area modify <id> components set <component_type> [value]
Sync areas in configuration phase
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 findTrackedAreasContaining and union area performance
  • Make BVHNode not 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> color with 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#findAllAreasContaining to AreaSavedData#findAnyAreaContaining and add working AreaSavedData#findAllAreasContaining
  • Add Area#copyComponentsFrom
  • Add copy_components_from modify command
  • Rename AreaSavedData#findAllAreasContaining to AreaSavedData#findAnyAreaContaining and add working AreaSavedData#findAllAreasContaining
  • Add Area#copyComponentsFrom
  • Add copy_components_from modify command
[0.4.0] Area Lib 0.4.0 by Tomate0613 on Aug 31, 2025
Download
  • Rename AreaSavedData#findAllAreasContaining to AreaSavedData#findAnyAreaContaining and add working AreaSavedData#findAllAreasContaining
  • Add Area#copyComponentsFrom
  • Add copy_components_from modify command
[0.3.6] Area Lib 0.3.6 by Tomate0613 on Apr 16, 2025
Download
  • Add null check when creating union area
  • Add sphere area
[0.2.6] Area Lib 0.2.6 by Tomate0613 on Feb 27, 2025
Download
  • Stop tracking deleted areas
[0.2.5] Area Lib 0.2.5 by Tomate0613 on Feb 27, 2025
Download
  • Fix crash
[0.2.4] Area Lib 0.2.4 by Tomate0613 on Feb 27, 2025
Download
  • Fix multiple issues with empty BVH trees
[0.2.3] Area Lib 0.2.3 by Tomate0613 on Feb 26, 2025
Download
  • Fix /area query
[0.2.2] Area Lib 0.2.2 by Tomate0613 on Feb 26, 2025
Download
  • Prevent duplicate entries in BVHTree
[0.2.1] Area Lib 0.2.1 by Tomate0613 on Feb 26, 2025
Download
  • Add tracked components system
  • Add has and remove method on Area
  • Remove getSavedData on BVHTree
  • Add getAreasContaining to CompositeArea
  • Make bounding box not nullable
[0.2.0] Area Lib 0.2.0 by Tomate0613 on Feb 21, 2025
Download
  • Add area component system
  • Make areas have a reference to their own id
  • Delete BlockArea
[0.1.0] Area Lib 0.1.0 by Tomate0613 on Feb 14, 2025
Download
  • Deprecate block areas
  • Add box areas
  • Implement composite areas (Currently only union)
  • General code cleanup
[0.0.4] Area Lib 0.0.4 by Tomate0613 on Nov 27, 2024
Download
  • Add area priority
  • Add /area query
[0.0.3] Area Lib 0.0.3 by Tomate0613 on Nov 26, 2024
Download
  • Add keybind to toggle rendering
  • Disable rendering by default
[0.0.2] Area Lib 0.0.2 by Tomate0613 on Nov 05, 2024
Download
  • Fix rendering
Download Area Lib
Select game version
Select platform