BuildCraft|Core

BuildCraft|Core

7M Downloads

[Request][Mod Interaction] Method/Interface/API Hook to blacklist certain blocks from the quarry, builder, and similar

ReikaKalseki opened this issue ยท 5 comments

commented

I am working on a dimension with extensive puzzle-type structures, and being able to mine them is very much a problem. The blocks are unbreakable by the player, but their actual hardness is not (and cannot be) less than zero because other metadatas of the block are mineable.

I would greatly appreciate an API hook of some sort - like making a block implement INonMineable - to stop the quarry and similar from tearing into the structures.

commented

Why not make two Blocks, one with all the non-mineable metas and one with all the mineable ones?

I feel that API hook would be greatly abused.

commented

Because they are completely identical for all other purposes and I feel it is wasteful of the still-limited block IDs. Also, doing that change now would break every existing world, as these blocks have already been used extensively for worldgen.

commented

Idea 2: Cancel BlockBreakEvents.

commented

That works; do the Quarry and similar fire them and fail to break a block if that is canceled?

commented

Yes; Quarries, Fillers, Builders and Robots listen to the event. Stripes Pipes don't (yet), and other mods should be. Doubt many of them do, though.