[DONE] Brushes and Fill.

Fixed bugs, solved problems, and old reports.
Locked
User avatar
Freeze_Craft
SupOP
Offline
Posts: 60
Joined: June 19th, 2011, 8:18 am
Location: Australia

[DONE] Brushes and Fill.

Post by Freeze_Craft »

I'd like to suggest the ability to use brushes with the /fill2d command.

eg. /brush rainbow
/f2d
Air will be replaced by rainbow brush in area.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Brushes and Fill.

Post by fragmer »

It is not possible to make fill commands work with brushes, unfortunately, due to some technical limitations of the algorithm.

Specifically, if at any coordinate the brush does NOT change a block (e.g. if it tries to place the same block type that we are replacing, or if skips the block), /f2d will get stuck in a loop trying to infinitely replace the block at that coordinate.

The only way to overcome this limitation would be to build up a list of coordinates to replace in advance, or to keep a list of replaced blocks. Although those changes would work, the /f2d command would run slower and use more system resources.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Brushes and Fill.

Post by fragmer »

Good news! In fCraft 0.641, brush support has been added to /Fill2D

Image

Locked