WorldEdit-BE icon indicating copy to clipboard operation
WorldEdit-BE copied to clipboard

Select pos1 with block "break"

Open KalmeMarq opened this issue 1 year ago • 2 comments

Problem

I think having to right-click while shifting it's not necessary and I have to "worry" about sneaking and jump at the same time so I don't go down. It would be better to just do what the Java version does. Set pos1 by breaking the block (and restoring).

Proposed Solution

When a block is broken, detect if the player is using the wooden_axe and has also the permission to worldedit. If so, restore the blockstate and set the pos1.

Alternatives

No response

Additional info

Maybe it was already tried and wasn't a good solution for some reason but nonetheless I here it is the request.

KalmeMarq avatar Jul 06 '22 16:07 KalmeMarq

For those wondering why it's shift right click to begin with, it's due to a limitation with Minecraft's current scripting API. it can't detect when a block is broken until it's actually broken. This means if it were used on blocks with special data like signs, furnaces and command blocks, those blocks would lose their data.

The only viable workaround in terms of implementation would be to only allow one item to be used as a selection wand, but that would prevent users from using any item as a selection wand.

This feature can be implemented once the scripting API matures a little more.

SIsilicon avatar Jul 07 '22 18:07 SIsilicon

Even with permutations it loses data? That's unfortunate. However, I think that it might not matter. If you're selection an area that area will be filled so it would destroy the sign/furnace. Though... there are exceptions. Like if I select an area to copy. I hope they improve the API in that aspect.

KalmeMarq avatar Jul 07 '22 22:07 KalmeMarq

Implemented in latest changes

SIsilicon avatar Oct 17 '22 22:10 SIsilicon