Jump to content

/Replace: Difference between revisions

From fCraft Wiki
Croy07 (talk | contribs)
Created the page /Replace. Added: CommandBox, Definition, Related commands. ~ Croy07
 
No edit summary
Line 2: Line 2:
|name=Replace
|name=Replace
|purpose=Replaces all blocks of specified type(s) in an area.
|purpose=Replaces all blocks of specified type(s) in an area.
|aliases=r
|aliases=R
|uses=/Replace BlockToReplace [AnotherOne, ...] ReplacementBlock
|uses=/Replace Block1 [Block2...] Replacement
|cat=Building
|cat=Building
|perm={{rperm|Draw}}
|perm={{rperm|Draw}}
Line 9: Line 9:
|v=0.426
|v=0.426
|}}
|}}
Replaces all blocks of specified type(s) in an area. Use {{cmd|Cancel}} to cancel selected mode. Use {{cmd|Undo}} to stop and undo the last command.
Replaces all blocks of specified type(s) in an area. More than one block name may be listed to be replaced. Last block on the list is the replacement. Use {{cmd|Cancel}} to cancel selected mode. Use {{cmd|Undo}} to stop and undo the last command.


== Use as a brush ==
:Players with {{perm|DrawAdvanced}} permission can use <code>replace</code> as a [[brush]], with same parameters (see examples below).
== Examples ==
/r blue water
::Replace all blue blocks with water
/r red orange yellow lava
::Replace all red, orange, and yellow blocks with lava
/brush r blue water
/sphere
::Using {{cmd|Replace}} as a brush, replace all blue blocks with water in the shape of a sphere. Alternatively, you could do...
/brush r
/sphere blue water
::Identical to the above command. Brush parameters can be given either to {{cmd|Brush}} command, or to draw command (like {{cmd|Sphere}} itself).


== Related Commands ==
== Related Commands ==
*{{cmd|ReplaceNot}}
*{{cmd|ReplaceNot}}
*{{cmd|ReplaceBrush}}
*{{cmd|ReplaceBrush}}

Revision as of 19:50, 3 June 2013

Command
Replace

Replaces all blocks of specified type(s) in an area.

AliasesR
Usage

/Replace Block1 [Block2...] Replacement

CategoryBuilding
Required permissionsDraw
Usable from console?No
Introduced infCraft 0.426

Replaces all blocks of specified type(s) in an area. More than one block name may be listed to be replaced. Last block on the list is the replacement. Use /Cancel to cancel selected mode. Use /Undo to stop and undo the last command.

Use as a brush

Players with DrawAdvanced permission can use replace as a brush, with same parameters (see examples below).

Examples

/r blue water
Replace all blue blocks with water


/r red orange yellow lava
Replace all red, orange, and yellow blocks with lava


/brush r blue water
/sphere
Using /Replace as a brush, replace all blue blocks with water in the shape of a sphere. Alternatively, you could do...


/brush r
/sphere blue water
Identical to the above command. Brush parameters can be given either to /Brush command, or to draw command (like /Sphere itself).