/fill command

Post all ideas and suggestions for fCraft here
Post Reply
gamesaucer
Offline
Posts: 5
Joined: September 7th, 2011, 7:41 am

/fill command

Post 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

User avatar
boblol0909
SupOP
Offline
Posts: 314
Joined: June 24th, 2011, 10:27 pm

Re: /fill command

Post by boblol0909 »

There already is a fill command and it does ask for confirmation on air.

User avatar
Smokeybacon
Trustee
Offline
Posts: 371
Joined: May 24th, 2011, 12:29 am
Location: Stuttgart
Contact:

Re: /fill command

Post 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.
[02:27] <+FCB2> MainTrain97: my dad is an arkansas goveren
[02:27] <+FCB2> MainTrain97: and iwe are suing skittles
[02:29] <+FCB2> MainTrain97: and we may file a lawsuit against fcraft

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

Re: /fill command

Post by fragmer »

/Fill3D is also planned at some point.

User avatar
KingCrab
Offline
Posts: 1058
Joined: May 24th, 2011, 4:42 pm

Re: /fill command

Post by KingCrab »

fragmer wrote:/Fill3D is also planned at some point.
The parameters :o . Good luck
<+FCB1> 05+Pemalite: all the fcraft chicks reject me except element

13:04 + FCB2 │ +Pemalite: craaaaab
13:04 + FCB1 │ +Pemalite: no
13:04 + FCB1 │ +Pemalite: ill give yout the best loving ou ever ad crab

Post Reply