Skip to content

ScriptAPI

321 Topics 2.3k Posts

A place to ask for help on writing scripts

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    2 Views
  • [Legendary] How can I make a script exclude players? (like the AntiBot)

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    CzechHekC
    @suicidemouse You can enable wasinvisible option in AntiBot and edit the list of players that were invisible manually and exclude them that way. or if you don't want to blacklist all other players than your target then you can use the needhit option and edit list of players that you hit
  • How to make killinsults

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    suicidemouse33S
    @woobs-fan just like this var Insults = [ "whatever else goes here", "whatever else goes here... again", "whatever else goes here... again... and again" ]
  • Cant find the problem in my code

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    Ali00035A
    @exit-scammed It's ok
  • mc.thePlayer is undefined

    Solved
    41
    0 Votes
    41 Posts
    24k Views
    ?
    40 replies what the fuck
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    6 Views
  • Code completion

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    ByGrafB
    @ali00035 ok I will try it out
  • How to switch hotbar slots via script?

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    ByGrafB
    @czechhek said in How to switch hotbar slots via script?: mc.playerController.updateController(); Thank u guys so much
  • How to make criticals turn off after 3 hits?

    Moved
    14
    0 Votes
    14 Posts
    4k Views
    Ali00035A
    @bygraf
  • How to draw a gradient rect

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    T
    A better way of not using reflection would be: /** * @param color1 color in hex. * @param color2 color in hex. */ function drawSimpleVerticalGradientRect(x, y, x2, y2, color1, color2) { GL11.glBegin(GL11.GL_QUADS); glColor(color1); GL11.glVertex2d(x, y); GL11.glVertex2d(x, y2); glColor(color2); GL11.glVertex2d(x2, y2); GL11.glVertex2d(x2, y); GL11.glEnd(); } /** * @param color A color in hex. */ function glColor(color) { var a = (color >> 24) & 0xFF; var r = (color >> 16) & 0xFF; var g = (color >> 8) & 0xFF; var b = (color) & 0xFF; GL11.glColor4f(r / 255, g / 255, b / 255, a / 255); } I would like to explain this, but i don't know if i could do it well Example Usage: GlStateManager.disableTexture2D(); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Tells GL to transition between colors GlStateManager.shadeModel(GL11.GL_SMOOTH); drawSimpleVerticalGradientRect(10, 10, 390, 390, 0xffffffff, 0x00ffffff); // Tells GL to use the ONLY' last color GlStateManager.shadeModel(GL11.GL_FLAT); GlStateManager.disableBlend();
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Add to TargetStrafe

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    Ali00035A
    @mxmblee Yes
  • drawString wrong xy value

    Solved
    2
    0 Votes
    2 Posts
    664 Views
    test test2T
    help please. text goes nowhere
  • drawScaledCustomSizeModalRect isn't working

    Solved gui script
    4
    0 Votes
    4 Posts
    1k Views
    test test2T
    Sorry, i'm stupid. x and y does not exists
  • anything wrong in this skidded stupid script?

    20
    0 Votes
    20 Posts
    5k Views
    F
    [image: .png]
  • setTimeout

    Solved
    2
    0 Votes
    2 Posts
    668 Views
    CzechHekC
    @dinofeng You have to define setTimeout function as it isn't built-in. Consider importing Core and using timeout(1000, func).
  • What is the method of sending packets(Or usage)

    Unsolved
    9
    0 Votes
    9 Posts
    3k Views
    Ali00035A
    @wowiesocl use the inline code option pls
  • Script not working

    Solved
    96
    0 Votes
    96 Posts
    25k Views
    M
    @mems said in Script not working: I guess I gotta call you Ali from now on. but you still call me ender
  • How can I get a random player's name in ScriptAPI?

    Solved
    3
    0 Votes
    3 Posts
    827 Views
    Ali00035A
    @czechhek i might use core and ty
  • Core blockanimation

    Unsolved
    12
    0 Votes
    12 Posts
    3k Views
    L
    How to view?