3 line code scaffold LOL



  • Enjoy XD

    package wormyclient.hacks;
    
    import org.lwjgl.input.Keyboard;
    
    import net.minecraft.util.EnumFacing;
    import net.minecraft.util.EnumHand;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.util.math.Vec3d;
    import wormyclient.events.EventTarget;
    import wormyclient.events.EventUpdate;
    import wormyclient.modules.Category;
    import wormyclient.modules.Module;
    
    public class Test extends Module {
    
    	public Test() {
    		super("Test", Category.MISC, Keyboard.KEY_NONE);
    		// TODO Auto-generated constructor stub
    	}
    	@EventTarget
    	public void onUpdate(EventUpdate event) {
    		BlockPos pos = new BlockPos(mc.player).down(1);
    		Vec3d vec = new Vec3d(0, 0, 0);
    		if(mc.player.onGround || mc.player.motionY == 0.0030162615090425808) {
    			mc.playerController.processRightClickBlock(mc.player, mc.world, pos, EnumFacing.VALUES[0].getOpposite(), vec, EnumHand.MAIN_HAND);
    		}
    	}
    }
    

    It should be pretty easy to port it to 1.8



  • what



  • fun fact this might work on ncp



  • Nice job



  • @icewormy3

    ///api_version=2
    (script = registerScript({
        name: "oNeLineExPaNdSCAFFOLDLOLXDDDDDnosrslythiswhyareyousoLOLOLOLOROFLLLLfromthisLMAO",
        authors: ["urmom"],
        version: "1.0"
    })).import("Core.lib");
    
    module = {
        onUpdate: function () {
            mc.playerController.onPlayerRightClick(mc.thePlayer, mc.theWorld, mc.thePlayer.getHeldItem(), new BlockPos(mc.thePlayer).down(1), mc.thePlayer.getHorizontalFacing(), new Vec3(0, 0, 0));
        }
    }
    


  • OMIGILUL



  • @CzechHek yes i couldve put all the variables in the function but I wanted my scaffold to be easy to read. Also added other checks so it doesnt place blocks midair



  • will this be detected on big servers?



  • @T-S it only works in single player and servers with no anticheat


Log in to reply