Fabric API

Fabric API

106M Downloads

Add a block update suppression mechanism

octylFractal opened this issue ยท 4 comments

commented

Currently, WorldEdit and Carpet are conflicting over cancelling BlockState#onBlockAdded in nearly identical ways. I would like to have this functionality available as part of Fabric API so that other mods that might also want this functionality can hook in to a common mixin, rather than all conflicting.

WorldEdit's current mixin is here, and Carpet's is here.

I think ideally the API would look like WorldEdit's, where it has an ExtendedChunk interface that offers the extra flag.

@i509VCB has already expressed interest in making a PR for this, I created this issue for tracking purposes, and also to collect opinions on whether it's worth adding.

commented

Hello, I just stumbled upon this issue. How did you address the problem in the end?

commented

WorldEdit simply disables its mixin in the presence of carpet.

commented

Ok thanks, so this is still an issue! Assigning myself so I remember to have a closer look in the future.

commented

As a tide-over till this gets around to being added to Fabric API, WorldEdit and Carpet could likely make a tiny/JiJ-able compat API to make sure they don't step on each other's toes. I did this with Bee Compatible during the 1.15 cycle and it worked pretty well (my bad programming skills notwithstanding).