[SCRIPT BASE] Core 4.11 - Simple, yet powerful ScriptAPI base
-
Introduction
Core is a coding base, that significantly simplifies coding via LB's ScriptAPI, without losing any of its features.
It's suitable for anyone, from complete beginners to experienced coders.Why should I use it?
When you make a variety of scripts, you waste your precious time doing unimportant things in the code. These actions are much easier and faster to do with Core.
It has integrated utilities that anyone can use, so you don't have to make them yourself. It also imports many classes so you don't have to import them manually.
It autogenerates help command and prints all possible subcommands (configurable).
If modules category doesn't exist, Core will create it automatically, adding tabs to TabGUI and ClickGUI. You can make scripts stand out by that.
All scripts on Core GitHub support auto updates from Core 1.6+!- You can specify where Core should check for updates for your own script from Core 3.24+
- Core Updater now prints latest commit information in update dialogs from Core 4+
All LiquidBounce events are supported from Core 3.28+!
- including events such as onBlockBB, onClientShutdown, onEntityMovement, onPushOut, onRenderEntity, onScreen, onText, onTick (https://github.com/CzechHek/Core/blob/master/Examples/artificial events.js)
Scripts running on Core: https://github.com/CzechHek/Core/tree/master/Scripts.
Core utils examples: https://github.com/CzechHek/Core/tree/master/ExamplesImporting
Core automatically imports:
- net.minecraft.block.* (blocks)
- net.minecraft.client.gui.* (guis)
- net.minecraft.client.renderer.* (renderers)
- net.minecraft.entity.* (entities)
- net.minecraft.init.* (blocks, items)
- net.minecraft.item.* (items)
- net.minecraft.network.* (packets+)
- net.minecraft.util.* (mc utils)
- net.ccbluex.liquidbounce.utils.* (lb utils)
- net.ccbluex.liquidbounce.value.* (lb values)
and other function utilities
Download
-
AUTO UPDATES!
Released Core 1.6.5, it adds few functions, documentation, but most importantly, it automatically updates any script from Core GitHub!
https://github.com/CzechHek/Core/commit/4c6c5f0a481aa7b12c79ac4e3936f53a575c3c56
-
I've just discovered a flaw in AutoUpdating Core base (Core modules updates work fine), it only checks for Core updates when there aren't any other scripts, however, if you are running non core scripts that load before Core, it wont check for updates.
^ I've fixed that issue by updating Core to 1.6.8, it should also improve AutoUpdate performance significantly.
However if you don't receive Core 1.6.8 automatically, you have to download it manually via https://dyskord.cc/Core (then it should be fixed for you)
or alternatively remove non-Core scripts and run LB, then it should download Core automatically and you can put them back.https://github.com/CzechHek/Core/commit/351525c9bbbffac3844d73ddb5e76237fe0b2b57
-
how d you install this
-
@Soulplexis You put it into scripts folder, look at scripts using Core on https://github.com/CzechHek/Core/tree/master/Scripts.
-
oh oke got it ty
-
Released Core 3.6!
It is fully based on ScriptAPI v2, but still fully supports all old Core scripts and new Script API v2 Core scripts as well. It's much easier to adapt your current scripts to ScriptAPI v2 standard now. I've converted all scripts on Core GitHub to API v2, so no legacy stuff anymore!
It also includes major auto update fixes, freeze fixes and more. It has many new utils, importPackage and stuff like that!
Download at: https://dyskord.cc/Core or via Core Updater! -
@CzechHek after it updates to Core 3.6, and BlockAnimation 7.1, a critical bug happens and then make liquidbounce crash everytime ingame:
---- Minecraft Crash Report ---- WARNING: coremods are present: TLSkinCapeHookLoader (tlskincape_1.8.9-1.4.jar) TransformerLoader (LiquidBounce-b73.jar) Contact their authors BEFORE contacting forge // There are four lights! Time: 8/21/20 10:25 AM Description: Unexpected error <eval>:85 ReferenceError: "RenderHelper" is not defined at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319) at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291) at jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1442) at jdk.nashorn.internal.scripts.Script$Recompilation$5750$2208A$\^eval\_.onEnable#func_78440_a(<eval>:85) at jdk.nashorn.javaadapters.net.minecraft.client.renderer.ItemRenderer.func_78440_a(Unknown Source) at net.minecraft.client.renderer.EntityRenderer.renderHand(EntityRenderer.java:1058) at net.minecraft.client.renderer.EntityRenderer.func_78476_b(EntityRenderer.java:1002) at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1931) at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1576) at net.minecraft.client.renderer.EntityRenderer.func_181560_a(EntityRenderer.java:1372) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1051) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:349) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at misc.tweaker.Tweaker.a(Unknown Source) at misc.tweaker.Tweaker.stubMain(Unknown Source) at misc.tweaker.StubMain.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319) at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291) at jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1442) at jdk.nashorn.internal.scripts.Script$Recompilation$5750$2208A$\^eval\_.onEnable#func_78440_a(<eval>:85) at jdk.nashorn.javaadapters.net.minecraft.client.renderer.ItemRenderer.func_78440_a(Unknown Source) at net.minecraft.client.renderer.EntityRenderer.renderHand(EntityRenderer.java:1058) at net.minecraft.client.renderer.EntityRenderer.func_78476_b(EntityRenderer.java:1002) at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1931) at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1576) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['MC_404NF_H'/18711, l='MpServer', x=8.50, y=65.00, z=8.50]] Chunk stats: MultiplayerChunkCache: 0, 0 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: 8.00,64.00,8.00 - World: (8,64,8), Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 1 game time, 1 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Forced entities: 1 total; [EntityPlayerSP['MC_404NF_H'/18711, l='MpServer', x=8.50, y=65.00, z=8.50]] Retry entities: 0 total; [] Server brand: BungeeCord (git:BungeeCord-Bootstrap:1.16-R0.4-SNAPSHOT:aa22fe6:1530) Server type: Non-integrated multiplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:417) at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2536) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at misc.tweaker.Tweaker.a(Unknown Source) at misc.tweaker.Tweaker.stubMain(Unknown Source) at misc.tweaker.StubMain.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 7 (amd64) version 6.1 CPU: 2x Pentium(R) Dual-Core CPU T4500 @ 2.30GHz Java Version: 1.8.0_261, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1065867736 bytes (1016 MB) / 1404305408 bytes (1339 MB) up to 1404305408 bytes (1339 MB) JVM Flags: 6 total; -Xmn128M -Xmx1352M -XX:+UseConcMarkSweepGC -Xmx1352M -Xms1352M -Xmn128M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.19 Powered by Forge 11.15.1.2318 Optifine OptiFine_1.8.9_HD_U_I7 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJA FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.2318-1.8.9.jar) UCHIJA Forge{11.15.1.2318} [Minecraft Forge] (forge-1.8.9-11.15.1.2318-1.8.9.jar) UCHIJA tlauncher_custom_cape_skin{1.4} [TLSkinCape] (tlskincape_1.8.9-1.4.jar) Loaded coremods (and transformers): TLSkinCapeHookLoader (tlskincape_1.8.9-1.4.jar) gloomyfolken.hooklib.minecraft.PrimaryClassTransformer TransformerLoader (LiquidBounce-b73.jar) net.ccbluex.liquidbounce.injection.transformers.ForgeNetworkTransformer net.ccbluex.liquidbounce.script.remapper.injection.transformers.AbstractJavaLinkerTransformer Launched Version: Forge 1.8.9 LWJGL: 2.9.4 OpenGL: Mobile Intel(R) 4 Series Express Chipset Family GL version 2.1.0 - Build 8.15.10.2555, Intel GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because EXT_framebuffer_object is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: ! ยง9Deep Ocean Blue 16x FPS.zip Current Language: English (US) Profiler Position: N/A (disabled) CPU: 2x Pentium(R) Dual-Core CPU T4500 @ 2.30GHz
-
@Asutoboki-kun
The first problem is that C16 is defined.
The second problem is that I've tested all Core scripts and kept fixing them, including auto updating. -
@CzechHek but smh after update to core 3.6, ur invmanager no longer work. And it even cause lag.
p/s: also the AutoGapple by @commandblock2 doesn't work too, it makes me can't right click properly -
@Asutoboki-kun Yeah I have not yet updated to Core 3.6 plus the original one was problematic
-
@commandblock2 so can you fix it?
-
@Asutoboki-kun I'll see what's wrong with it later
-
@commandblock2 wait the script in my folder is old, so will check later the latest one
-
@Asutoboki-kun Hmm I just updated(fixed keeping right key down when there is no gapple and health is low). It worked in my case.
But it will still fuck up in the following strange situation.
When the health is low and there is a Gapple in the inventory, andC16PacketClientStatus
was not defined.
If you just launch the client and use the module when trying to eat a gapple in inventory(not in hotbar),jdk.nashorn.internal.runtime.ECMAException: ReferenceError: "C16PacketClientStatus" is not defined
spamms the log. However, doing a.scriptmanager reload
in game just fixed that.Edit:
@CzechHek I have the exact same problem, BlockAnimation.js crashed when launching. However, if I launch without this and use.scriptmanager reload
to load this module, it all worked fine. (Too bad this forum doesn't support underline) -
@commandblock2 In that case new package importing via loaded classes in ClassLoader is unreliable, even tho it shouldn't. It works every time on 2 different setups, I've tested both legacy and new Core scripts for a week. I could try to import packages onLoad or in the old way.
-
Introducing Reflector
Reflector is a really useful utility that makes any class fully accessible.
It automatically converts names to srg and manipulates with values via reflections.Example:
///api_version=2 (script = registerScript({ name: "Reflector", authors: ["CzechHek"], version: "1.0" })).import("Core.lib"); module = { onEnable: function () { print(adaptedMc.debugFPS); //accessing a private field blockRenderDispatcher = adaptedMc.blockRenderDispatcher; //storing a private field inside a variable (will store an adapted version of it) print(blockRenderDispatcher.blockModelRenderer); //accessing a private field of an adapted block render dispatcher adaptedMc.resize(1280, 720); //calling a private method (supports any argument count) adaptedLB.isStarting = true; //setting a value of a private field } } adaptedMc = new Reflector(mc); adaptedLB = new Reflector(LiquidBounce.INSTANCE); //INSTANCE is needed to change isStarting field //requires Core 3.17+, supports any java object, automatically converts to srg names
https://github.com/CzechHek/Core/blob/master/Examples/reflector.js
core can now also send packets without triggering packet event [sendPacket()] and other stuff yay
-
epic sexer
-
@bruh-ok said in [SCRIPT BASE] Core 3.17 - Simple, yet powerful ScriptAPI base:
epic sexer
THE SEEEEEEEEEEEEEEEX