Skip to content

ScriptAPI

A place to ask for help on writing scripts

312 Topics 2.3k Posts
  • New ScriptApi Event

    scriptapi event translation
    5
    0 Votes
    5 Posts
    880 Views
    As丶OneA
    https://forum.ccbluex.net/thread.php?id=2576#p15071
  • Add this please

    2
    0 Votes
    2 Posts
    264 Views
    LolMCL
    noteplayer i dont think marco will add them becuz he sleeping
  • AutoBlockPicker for scaffold pls

    11
    0 Votes
    11 Posts
    1k Views
    LolMCL
    https://forums.ccbluex.net/topic/170/autofindblock
  • This topic is deleted!

    7
    0 Votes
    7 Posts
    109 Views
  • How to use mixins?

    Moved Solved
    3
    0 Votes
    3 Posts
    425 Views
    C
    Btw if you are trying to use mixin in scriptAPI that should be impossible. IIRC, Senk Ju onece mentioned that mixins are loaded before the scripts, but there might still be other ways of injecting. (I tried to search in the old forum but failed to find that post)
  • 0 Votes
    5 Posts
    585 Views
    ChocoPie_ismeC
    you can only spoof it (visual)
  • onPlaceBlock , onSendPacket event

    Moved
    13
    0 Votes
    13 Posts
    2k Views
    ?
    As for "onPlaceBlock", I think you can check C08PacketPlayerBlockPlacement in onPacket. (I don't code with mcp918 so If it's wrong way plz remind me, thanks)
  • I need a criticals script.

    Moved
    8
    0 Votes
    8 Posts
    1k Views
    G
    no need for librecraft criticals,
  • Help

    9
    0 Votes
    9 Posts
    1k Views
    ChocoPie_ismeC
    @Aftery said in Help: does it work on b71 then no
  • How to quickly enter the server from single player game?

    6
    0 Votes
    6 Posts
    662 Views
    ChocoPie_ismeC
    Ingame Server Switcher Mod
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Help me how to convert?

    Moved
    5
    0 Votes
    5 Posts
    776 Views
    C
    just remove the type C0FPacketConfirmTransaction then. Since JavaScript is a dynamically typed language, the type is determined at runtime. If the packet is a instance of a C0FPacketConfirmTransaction you can call getWindowId() and getUid() then if it is not, exceptions should be thrown. //if (event.getPacket() instanceof C0FPacketConfirmTransaction) packetConfirmTransaction = event.getPacket();