Page 1 of 1

/fill command

Posted: November 24th, 2011, 8:30 am
by gamesaucer
Instead of needing to select everything and /replace it, I thought of a /fill command to actually fill spaces.

It works like in mspaint: everything the same will be changed.

Example:

:gray: :gray: :gray:
:gray: :gray: :gray:
:gray: :gray: :gray:

YAY! You made a raincloud. But you think it might look better when it's black.
/fill
hold black in your hand.
Click the raincloud to mark a block.

:black: :black: :black:
:black: :black: :black:
:black: :black: :black:

1. The command checks the 1st block and marks it.
2. The command checks if any of the 6 blocks around are of that type too.
3. If any block is, mark it and make it check from 2.

arguments:

/fill
Blocktype (optional, defines block to fill with)

You don't want to accidenly fill the whole map, so when trying to fill air, it should ask for confirmation.

Anyone ranked too low will run into their blocklimit, but if someone without blocklimit accidently selects air, we don't want the whole level to fill.

Why this is better than /replace:
+ /fill needs no argument.
+ /fill needs only 1 marked block.

- /replace needs at least 2 arguments.
- /replace needs you to select a large area.

Thanks,
Gamesaucer

Re: /fill command

Posted: November 24th, 2011, 3:11 pm
by boblol0909
There already is a fill command and it does ask for confirmation on air.

Re: /fill command

Posted: November 24th, 2011, 5:07 pm
by Smokeybacon
Yes, we already have exactly that, it is called /fill2d

The plane in which to execute the fill is defined by which way the player faces. You need to look along a normal to the plane.

Plus you forgot the big advantage in that replace works only in cuboids, whereas fill will work with any generic shaped space defined by a boundary of blocks other than the type being filled.

Re: /fill command

Posted: November 24th, 2011, 5:42 pm
by fragmer
/Fill3D is also planned at some point.

Re: /fill command

Posted: November 24th, 2011, 6:06 pm
by KingCrab
fragmer wrote:/Fill3D is also planned at some point.
The parameters :o . Good luck