@@ -0,0 +1,2595 @@
+package com.matt.forgehax.mods.commands;%0A%0Aimport com.matt.forgehax.Helper;%0Aimport com.matt.forgehax.util.command.Command;%0Aimport com.matt.forgehax.util.command.CommandBuilders;%0Aimport com.matt.forgehax.util.mod.CommandMod;%0Aimport com.matt.forgehax.util.mod.loader.RegisterMod;%0Aimport net.minecraft.client.entity.EntityPlayerSP;%0Aimport net.minecraft.entity.Entity;%0Aimport net.minecraft.network.play.client.CPacketPlayer;%0Aimport net.minecraft.network.play.client.CPacketVehicleMove;%0A%0Aimport static com.matt.forgehax.Helper.getNetworkManager;%0A%0A/**%0A * Created by Babbaj on 4/12/2018.%0A */%0A@RegisterMod%0Apublic class ClipCommand extends CommandMod %7B%0A%0A    public ClipCommand() %7B%0A        super(%22ClipCommand%22);%0A    %7D%0A%0A    // teleport to absolute position%0A    private void teleport(double x, double y, double z) %7B%0A        final Entity local =  Helper.getRidingOrPlayer();%0A        local.setPositionAndUpdate(x,  y, z);%0A        if (local instanceof EntityPlayerSP) %7B%0A            getNetworkManager().sendPacket(new CPacketPlayer.Position(local.posX, local.posY, local.posZ, MC.player.onGround));%0A        %7D else %7B%0A            getNetworkManager().sendPacket(new CPacketVehicleMove(local));%0A        %7D%0A    %7D%0A%0A    // teleport vertically by some offset%0A    private void teleport(double yOffset) %7B%0A        Entity local = Helper.getRidingOrPlayer();%0A        teleport(local.posX, local.posY + yOffset, local.posZ);%0A    %7D%0A%0A    @RegisterCommand%0A    public Command clip(CommandBuilders builders) %7B%0A        return builders.newCommandBuilder()%0A                .name(%22clip%22)%0A                .description(%22Teleport vertically%22)%0A                //.requiredArgs(1)%0A                .processor(data -%3E %7B%0A                    try %7B%0A                        switch (data.getArgumentCount()) %7B%0A                            case 1: teleport(Double.parseDouble(data.getArgumentAsString(0)));%0A                                break;%0A                            case 3: teleport(%0A                                    Double.parseDouble(data.getArgumentAsString(0)),%0A                                    Double.parseDouble(data.getArgumentAsString(1)),%0A                                    Double.parseDouble(data.getArgumentAsString(2)));%0A                                break;%0A                            default:%0A                                Helper.printMessage(%22Invalid number of arguments: expected 1 or 3%22);%0A                        %7D%0A                    %7D catch (NumberFormatException e) %7B%0A                        Helper.printMessage(%22Failed to parse input%22);%0A                    %7D%0A                %7D)%0A                .build();%0A    %7D%0A%7D%0A

Add Clip Command