Search in sources :

Example 1 with SplatterBrush

use of com.fastasyncworldedit.core.command.tool.brush.SplatterBrush in project FastAsyncWorldEdit by IntellectualSites.

the class BrushCommands method splatterBrush.

@Command(name = "splatter", desc = "Splatter a pattern on a surface", descFooter = "Sets a bunch of blocks randomly on a surface.\n" + "Pic: https://i.imgur.com/hMD29oO.png\n" + "Example: /br splatter stone,dirt 30 15\n" + "Note: The seeds define how many splotches there are, recursion defines how large, " + "solid defines whether the pattern is applied per seed, else per block.")
@CommandPermissions("worldedit.brush.splatter")
public void splatterBrush(InjectedValueAccess context, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "Expression", def = "5") Expression radius, @Arg(desc = "double", def = "1") double points, @Arg(desc = "double", def = "5") double recursion, @Arg(desc = "boolean", def = "true") boolean solid) throws WorldEditException {
    worldEdit.checkMaxBrushRadius(radius);
    set(context, new SplatterBrush((int) points, (int) recursion, solid), "worldedit.brush.splatter").setSize(radius).setFill(fill);
}
Also used : SplatterBrush(com.fastasyncworldedit.core.command.tool.brush.SplatterBrush) ScatterCommand(com.fastasyncworldedit.core.command.tool.brush.ScatterCommand) Command(org.enginehub.piston.annotation.Command) CommandPermissions(com.sk89q.worldedit.command.util.CommandPermissions)

Aggregations

ScatterCommand (com.fastasyncworldedit.core.command.tool.brush.ScatterCommand)1 SplatterBrush (com.fastasyncworldedit.core.command.tool.brush.SplatterBrush)1 CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 Command (org.enginehub.piston.annotation.Command)1