-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Is your feature request related to a problem? Please describe.
I play on a hardcore server where griefing is allowed but not encouraged, this is mostly a non issue as almost everyone is friendly.
But just to be secure against griefers I'd purpose a chunk/world change detector.
Describe the solution you'd like
I propose component which allows a computer/robot/drone to
- Detect when blocks are placed/removed
- What block is placed
- Optionally info on the player which placed/destroyed the block.
Describe alternatives you've considered
It is possible to do the same with the geolyzer, however doing so is inefficient, to program, and it wastes server cycles.
Additional context
I had some ideas for the API, I'm a noob so feel free to ignore.
component.world_change.detect_radius(
callback,
size -- Radius of detection, relative to the block/robot/drone
)
component.world_change.detect_area(
callback
x,y,z, -- Relative to the block/robot/drone
x2,y2,z2,
)
callback signature:
callback(block, position, [entity])
larger the size the higher the power draw.