Search in sources :

Example 1 with SplineBrush

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

the class BrushCommands method splineBrush.

@Command(name = "spline", aliases = { "spl", "curve" }, desc = "Join multiple objects together in a curve", descFooter = "Click to select some objects,click the same block twice to connect the objects.\n" + "Insufficient brush radius, or clicking the the wrong spot will result in undesired shapes. The shapes must be simple lines or loops.\n" + "Pic1: http://i.imgur.com/CeRYAoV.jpg -> http://i.imgur.com/jtM0jA4.png\n" + "Pic2: http://i.imgur.com/bUeyc72.png -> http://i.imgur.com/tg6MkcF.png" + "Tutorial: https://www.planetminecraft.com/blog/fawe-tutorial/")
@CommandPermissions("worldedit.brush.spline")
public void splineBrush(Player player, InjectedValueAccess context, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "The radius to sample for blending", def = "25") Expression radius) throws WorldEditException {
    worldEdit.checkMaxBrushRadius(radius);
    player.print(Caption.of("fawe.worldedit.brush.brush.spline", (radius)));
    set(context, new SplineBrush(player), "worldedit.brush.spline").setSize(radius).setFill(fill);
}
Also used : SplineBrush(com.fastasyncworldedit.core.command.tool.brush.SplineBrush) 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 SplineBrush (com.fastasyncworldedit.core.command.tool.brush.SplineBrush)1 CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 Command (org.enginehub.piston.annotation.Command)1