SpongePowered / SpongeAPI

A Minecraft plugin API
http://www.spongepowered.org/
MIT License
1.14k stars 343 forks source link

Structure and Feature placement callbacks #2520

Open octylFractal opened 2 months ago

octylFractal commented 2 months ago

Major SpongeAPI version

12

Is this likely to be a breaking change?

No

What are you requesting?

Currently, Structure and Feature have boolean place(ServerWorld, Vector3i), which does not allow a mod like WorldEdit to capture or modify the changes. It would be nice if we could get a callback for each block/entity so that WorldEdit may place it, rather than placing it directly into the world. This allows undo, masking, and better control of block placement than using Minecraft's code directly.