Skip to content

[Suggestion] world change detector #159

@codecnotsupported

Description

@codecnotsupported

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

  1. Detect when blocks are placed/removed
  2. What block is placed
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions