WorldEdit for Bukkit

WorldEdit for Bukkit

21M Downloads

Keep Blockstates when replacing with a similar block

hexzeug opened this issue ยท 2 comments

commented

The Problem

When you want to replace things like stairs and slabs with other variants (stone stairs with oak stairs), which have rotations or other block state properties you can't keep the old block states.

A Solution

When replacing keep all block states, the new block has too, unless you are defining specific block states for the new block.

Alternatives

Have something like
//replace stone_slab[#] with oak_slab[#]
to tell world edit, it shold keep the old block states.

Anything Else?

No response

commented

Check the docs before making feature requests - this has existed for years

commented

Check the docs before making feature requests - this has existed for years

for future searchers:
it's //replace mask ^mask

//replace oak_slab ^stone_slab

https://worldedit.enginehub.org/en/latest/usage/general/patterns/#type-or-state-applying-pattern