Skip to content

ScriptAPI

A place to ask for help on writing scripts

309 Topics 2.3k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Help with if statement

    Solved
    6
    0 Votes
    6 Posts
    263 Views
    whymW
    @plumer-man thank you!
  • [Help Needed] Get player slot

    Solved
    5
    0 Votes
    5 Posts
    312 Views
    Plumer ManP
    uh, this was a small brain moment. I found the issue. mc.thePlayer.currentItem = prevSlot; this is what i did mc.thePlayer.inventory.currentItem = prevSlot; this is what it was meant to be
  • How to make a combo breaker script

    Solved
    4
    0 Votes
    4 Posts
    189 Views
    Ali00035A
    @whym No problem.
  • How to make custom category in Liquidscript?

    Solved
    2
    1 Votes
    2 Posts
    174 Views
    Ali00035A
    @whym use Core.lib
  • Custom script problem - help me to fix that

    Unsolved
    4
    0 Votes
    4 Posts
    165 Views
    Plumer ManP
    you didnt make this
  • co8 packet

    Solved
    12
    0 Votes
    12 Posts
    589 Views
    Ali00035A
    @plumer-man he meant flying
  • This topic is deleted!

    Unsolved
    13
    0 Votes
    13 Posts
    110 Views
  • 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
    222 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
    286 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
    381 Views
    Ali00035A
    @exit-scammed It's ok
  • mc.thePlayer is undefined

    Solved
    41
    0 Votes
    41 Posts
    2k 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
    308 Views
    ByGrafB
    @ali00035 ok I will try it out
  • How to switch hotbar slots via script?

    Solved
    11
    0 Votes
    11 Posts
    546 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
    899 Views
    Ali00035A
    @bygraf
  • How to draw a gradient rect

    Solved
    11
    0 Votes
    11 Posts
    444 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
    338 Views
    Ali00035A
    @mxmblee Yes