Skip to content

Missing event for farmland revert to dirt when not wet #7018

@DaisukeDaisuke

Description

@DaisukeDaisuke

Plugin information

Bug only happens with certain plugins (describe below)

Problem description

There is no event to detect or prevent farmland reverting to dirt when it is not wet.
Plugins cannot directly control or intercept this behavior.

$world->setBlock($this->position, VanillaBlocks::DIRT());
$changed = true;

Expected behaviour

An event should be implemented to allow detecting and cancelling this reversion.
Plugins should be able to create farmland without water.

PocketMine-MP version

5.41.0 (git hash: bb8ae4a)

PHP version

PHP version: 8.4.16

Server OS

Operating system: win

Game version (if applicable)

windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions