Skip to content

ScriptAPI

324 Topics 1.9k Posts

A place to ask for help on writing scripts

  • help

    5
    0 Votes
    5 Posts
    2k Views
    FaaatPotatoF
    @DreamWasFucked despite the fact that you are banned, this might still be interesting: mc.getRenderItem().renderItemAndEffectIntoGUI(ItemStack, x, y); This worked for me. Haven't found this one on this forum yet. Maybe it helps somebody. and if you want to get rid of some shade when rendering blocks RenderHelper = Java.type("net.minecraft.client.renderer.RenderHelper"); RenderHelper.enableGUIStandardItemLighting() mc.getRenderItem().renderItemIntoGUI(stack, x, y); mc.getRenderItem().renderItemOverlays(mc.fontRendererObj, stack, x, y) RenderHelper.disableStandardItemLighting();
  • Why I can't use commandManager or moduleManager in my script

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    izunaI
    @isnotpuppy Put this tag on the top of your script: /// api_version=2 ... code This will fix the issue. See: https://liquidbounce.net/docs/ScriptAPI/Getting Started Also fixed in future versions by removing support for ScriptAPI v1: https://github.com/CCBlueX/LiquidBounce/commit/3e92903f1372e1c96225bca057f0f136928d3bd5 0 1zun4 committed to CCBlueX/LiquidBounce removed support for ScriptAPI v1 Please update your script to ScriptAPI v2 to avoid issues in the future. See https://liquidbounce.net/docs/ScriptAPI/Getting%20Started for further information. This change fixes module and command manager not being defined correctly. See https://forums.ccbluex.net/topic/7671/why-i-can-t-use-commandmanager-or-modulemanager-in-my-script/
  • [Unnicker] How to get the Textures / Property of the GameProfile of a Player

    Solved
    4
    1
    0 Votes
    4 Posts
    2k Views
    FaaatPotatoF
    @Marlon no problem homie
  • How to use various utils, such as rotationutils

    Unsolved
    2
    0 Votes
    2 Posts
    889 Views
    ybyyby_ awaY
    @ybyyby_-awa I really don't understand what to add INSTANCE to. I haven't checked for updates lately
  • 0 Votes
    1 Posts
    610 Views
    No one has replied
  • [TUTORIAL] How to deobfuscate (most) scripts on this forum

    Unsolved
    5
    3 Votes
    5 Posts
    3k Views
    I
    @Aftery XD can you try deobfuscating it?
  • [API Demonstrate] Packet_Var

    Unsolved
    1
    0 Votes
    1 Posts
    471 Views
    No one has replied
  • pls give me script autodisable fly pls :(

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    Plumer ManP
    @nam-nguyen When would it disable? After a certain amount of ticks? After a teleport (s08)?
  • How to reference api interface through lbScript

    Unsolved
    2
    0 Votes
    2 Posts
    744 Views
    O
    @ybyyby_-awa Ok sir
  • How do you open the ScriptManager

    Unsolved
    1
    0 Votes
    1 Posts
    369 Views
    No one has replied
  • how to send a S45 packet?

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    P
    @Godden 你要知道这玩意是服务器的包 服务器发送它到你的客户端上
  • How to install liquidbounce text checker api

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    Vlad K.V
    @WaterFlex spasibo
  • How to use C09PacketHeldItemChange

    Unsolved
    1
    0 Votes
    1 Posts
    498 Views
    No one has replied
  • LiquidBounce's ScriptApi defines non-function as function

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    kaduvertK
    @CzechHek thanks! that worked but why is the scriptapi incorrect? couldn't it be fixed?
  • how to quene a packet when the packet quene is empty

    Unsolved
    17
    0 Votes
    17 Posts
    6k Views
    kumri owoK
    @Aftery i never said i knew what I was doing, I know a bit of js, but don’t know any scripting api thingy
  • [Question] Is there any way to edit a script without re-opening liquid bounce?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    FaaatPotatoF
    @Arabian i would recommend using core .r scriptname
  • [Request] Scaffold for JartexNetwork.

    9
    0 Votes
    9 Posts
    3k Views
    alipostedA
    @mems aliposted
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    14 Views
  • [CORE] Subscribing to Forge events.

    5
    3 Votes
    5 Posts
    2k Views
    I
    1.8.9 version (?): function register(eventClass, listener) { //we are making reflected event bus to access private fields & methods adaptedBus = new Reflector(MinecraftForge.EVENT_BUS); //getting an actual mod container (it seems that activeModContainer() returns null in LiquidBounce so we are checking for null & redefining to minecraft mod container) activeModContainer = Loader.instance().activeModContainer(); !activeModContainer && (activeModContainer = Loader.instance().getMinecraftModContainer()); //https://github.com/MinecraftForge/MinecraftForge/blob/d06e0ad71b8471923cc809dde58251de8299a143/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java#L58 adaptedBus.listenerOwners.put(listener, activeModContainer); ctr = eventClass.getConstructor(); ctr.setAccessible(true); EVENT = ctr.newInstance(); //don't remove this line because event won't call without it asm = new ASMEventHandler(listener, getMethod(listener, "invoke"), activeModContainer); //registering a new listener EVENT.getListenerList().register(adaptedBus.busID, EventPriority.NORMAL, listener); others = adaptedBus.listeners.get(listener); if (!others) { others = new ArrayList(); adaptedBus.listeners.put(listener, others); } others.add(asm) }
  • Getting variables/objects from other scripts

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    CzechHekC
    @idk-my-name Wouldn't that be too intrusive and confusing? I guess it would be better to do importProperties("scriptname") which would add script to list that no such property uses.