Ghoulboy78 / Scarpet-edit

A useful tool for developing decorative builds etc in scarpet.
Creative Commons Zero v1.0 Universal
22 stars 4 forks source link

Moar flags #36

Closed Firigion closed 3 years ago

Firigion commented 3 years ago

Adding three new flags: -d to "dry" whatever is being set: removes waterlogged states and turns water into air -s to "soft place" stuff: if the existing and new blocks match, the properties from one are translated into the ones of the other -g to remove greenery: when relacing air or water, a set number of other blocks are removed too: grass, fern and the tall variants for air, and seagrass and kelp for water. Other stuff (like flowers and coral fans) could be added. Maybe let the suer add them with a config (file) or setting (in-game)?

Also fixed -w because it used to have a bunch of problems. It now converts air into water, properly detects waterlogged blocks and doesn't throw property errors when trying to waterlog stone.

-d is applied before -w, so they can be combined to do stuff like change the water level of a build or whatever you need.

This fixes #21 and fixes #23 .

Firigion commented 3 years ago

Well, I went agead an fixed som bugs and it turned out I was doing it in this branch, sorry! copy had a bug where the selection would get inverted and do strage things (never reported), that's fixed. I also fixed one of the bugs in #28, where most brushes and shapes wouldn't behave properly with undo. I was caused by undo expecting positions and not blocks from which to extract positions.

altrisi commented 3 years ago

~And this seems to somehow break the flags suggester? I'll look into that, doesn't occur in master.~

Nvm I broke something when testing.