sbrl / Minetest-WorldEditAdditions

Extra tools and commands to extend WorldEdit for Minetest
https://worldeditadditions.mooncarrot.space/
Mozilla Public License 2.0
16 stars 3 forks source link

//replacemix param 2 support #109

Open VorTechnix opened 5 months ago

VorTechnix commented 5 months ago

Problem

Using //replacemix on stairs and such is annoying as param2 is not preserved

Solution

Add a flag to the //replacemix command to preserve param2. E.g. //replacemix [p2] <node_to_replace> <replace_node> ...

Alternatives

A param2 sensitive replacemix command could be implemented alongside the original however this would mean a whole new file of mostly duplicated code and a new command name to memorize.

A mod setting could also be implemented to toggle extended param2 awareness. This would be easier to implement however @sbrl would probably want it as a per-world setting.

sbrl commented 5 months ago

Hmmm, //replacemix doesn't set param2, so it should be preserved already. That's weird!