Undid egyptian bracing
cos gnembon hates egyptians
This commit is contained in:
1 parent
fcf2a6775c
commit
8d41bfa167
1 file changed
+11
-8
@@ -29,14 +29,17 @@ import java.lang.Math;
|
|||||||
import static net.minecraft.server.command.CommandManager.argument;
|
import static net.minecraft.server.command.CommandManager.argument;
|
||||||
import static net.minecraft.server.command.CommandManager.literal;
|
import static net.minecraft.server.command.CommandManager.literal;
|
||||||
|
|
||||||
public class DrawCommand {
|
public class DrawCommand
|
||||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
{
|
||||||
LiteralArgumentBuilder<ServerCommandSource> command = literal("draw")
|
public static void register(CommandDispatcher<ServerCommandSource> dispatcher)
|
||||||
.requires((player) -> SettingsManager.canUseCommand(player, CarpetSettings.commandDraw))
|
{
|
||||||
.then(literal("sphere").then(argument("center", BlockPosArgumentType.blockPos())
|
LiteralArgumentBuilder<ServerCommandSource> command = literal("draw").
|
||||||
.then(argument("radius", IntegerArgumentType.integer(1))
|
requires((player) -> SettingsManager.canUseCommand(player, CarpetSettings.commandDraw)).
|
||||||
.then(argument("block", BlockStateArgumentType.blockState())
|
then(literal("sphere").
|
||||||
.executes((c) -> drawSphere(c.getSource(),
|
then(argument("center", BlockPosArgumentType.blockPos()).
|
||||||
|
then(argument("radius", IntegerArgumentType.integer(1)).
|
||||||
|
then(argument("block", BlockStateArgumentType.blockState()).
|
||||||
|
executes((c) -> drawSphere(c.getSource(),
|
||||||
BlockPosArgumentType.getBlockPos(c, "center"),
|
BlockPosArgumentType.getBlockPos(c, "center"),
|
||||||
IntegerArgumentType.getInteger(c, "radius"),
|
IntegerArgumentType.getInteger(c, "radius"),
|
||||||
BlockStateArgumentType.getBlockState(c, "block"), null))
|
BlockStateArgumentType.getBlockState(c, "block"), null))
|
||||||
|
|||||||
Reference in new issue
Block a user