Skip to content

Releases: ChatTriggers/ctjs

3.0.0-beta.12

11 Apr 00:10
Compare
Choose a tag to compare
3.0.0-beta.12 Pre-release
Pre-release
  • Completely revamped the Scoreboard API to be more ergonomic
    • Score is now mutable, and many methods have been added. Check the docs for more info
  • Added PlayerInteraction to provided libs
  • Added MIT license
  • Added CT module list to crash reports
  • Added a typings generator that produces a TypeScript definition file for the mod (see attachments)
  • Added support for targeting non-Minecraft classes when using mixins
  • Added entityDamage and entityDeath triggers
  • Fixed a bunch of misc bugs
  • Disallow cancelling playerInteract trigger if the action is BreakBlock
  • Calling .register() on a trigger more than once will now do nothing
  • TextComponent now mirrors /tellraw with respect to click and hover event values

3.0.0-beta.11

02 Jan 01:29
0d9bf29
Compare
Choose a tag to compare
3.0.0-beta.11 Pre-release
Pre-release
  • Console now prints error causes where applicable
  • Fix a few more edge cases with KeyBind
  • Fix Shape rendering being offset by the player's position
  • Completely rewrite TextComponent
    • It is now immutable and much more developer-friendly. See the docs for more details
    • Removed Message; TextComponent now contains chat()/actionBar()/chatLineId/etc
  • Fix not parsing JS files as UTF-8
  • Add a Toast API, which can be used to display toasts (the thing that pops up in the top right when you get an advancement)
  • Re-add ModMenu support

3.0.0-beta.10

21 Dec 00:23
1b79ef4
Compare
Choose a tag to compare
3.0.0-beta.10 Pre-release
Pre-release

Update to 1.20.4 and Fabric loader 0.15.3. This version should still work with old Fabric loaders.

3.0.0-beta.9

04 Dec 00:28
Compare
Choose a tag to compare
3.0.0-beta.9 Pre-release
Pre-release
  • Fix Renderer.drawCircle() causing crashes
  • Fix needing to call Renderer.rotateToCamera/translateToPlayer
  • Fix Commands API not converting Java objects to JS values
  • Fix a bunch of mapping errors
  • Fix Gui buttons not being clickable and add functions to set their text and tooltip
  • Fix various KeyBind issues
  • Fix not being to colorize Item's rendering
  • Fix ChatLib.chat() triggering chat triggers
  • Fix /ct files on MacOS
  • Fix TextComponent not parsing its actions correctly
  • Add TextComponent.setColor()
  • Add ability for Commands to redirect to the vanilla MC command dispatcher via Commands.redirect(Commands.getDispatcherRoot()
  • Add Renderer.lineWidth()

3.0.0-beta.8

22 Oct 18:25
Compare
Choose a tag to compare
3.0.0-beta.8 Pre-release
Pre-release
  • Add 1.20.2 support
  • Rhino now treats java.util.Collection objects as JS arrays
  • Rhino now convert Java boxed-primitive classes to their JS equivalent primitives (i.e. converting java.lang.String into a JS string instead of a new String())
  • Fix Renderer.drawLine() treating newlines incorrectly
  • Fix colors not working correctly in Renderer
  • Fix Renderer3d.drawString() not showing through walls (also added a parameter to control that behavior)
  • Fix Renderer text not scaling properly
  • Fix Inventory.getItems() sometimes causing an NPE
  • Fix the CT console keybinding getting reset every time the game is launched
  • Change the way serverConnect/serverDisconnect/worldLoad/worldUnload trigger with respect to each other. See this commit for more details.
  • Remove the general console. If you need to see chat messages for criteria, use /ct dump

3.0.0-beta.7

10 Oct 00:28
Compare
Choose a tag to compare
3.0.0-beta.7 Pre-release
Pre-release
  • Added a new /ct migrate command which can handle most incompatibilities when upgrading
  • Reverted previous merger of Renderer and Tessellator, but Tessellator has been renamed to Renderer3d. It does not necessarily have the same API, as it now holds 3D-only methods.
  • Fixed a few obscure Mixin issues
  • Removed the parameterName option in various Mixin objects, since it will never work outside of a dev environment
  • Stop converting Java Collections to JS arrays. This allows Collection objects coming from Java to be modified
  • Fix Scoreboard.getLines() returning empty strings
    • Also made scoreboard functions return TextComponent instead of string
  • Fix custom KeyBinds not being persistent between game launches and sometimes causing crashes
  • Fix Item.getLore() triggering the Fabric tooltip event
  • Fix calling .trigger() on a custom trigger at the top level not working
  • Fix messageSent not propogating the leading / character if the message was a command

3.0.0-beta.6

26 Aug 22:48
0aae44f
Compare
Choose a tag to compare
3.0.0-beta.6 Pre-release
Pre-release
  • Ensure top-level code runs in a consistent order. If module A requires module B, module B's entry file will be ran before module A's entry file. It is now an enforced error to have circular module requirements.
  • Add middle clicks to CPS
  • Fixed interface methods not being remapped
  • Fixed Scoreboard not updating when the scoreboard changes
  • Fixed a bunch of Sound issues
  • Fixed a ConcurrentModificationException when constructing an Image
  • Fixed console being extremely unreliable
  • Fixed serverConnect trigger using the wrong trigger class (causing error) as well as firing when joining a single player world

3.0.0-beta.5

30 Jul 02:45
6e72348
Compare
Choose a tag to compare
3.0.0-beta.5 Pre-release
Pre-release
  • Fix the console reload keybind not working
  • Add support for ModMenu
  • Fix Rhino throwing IllegalAccessExceptions when using certain Java APIs
  • Made /ct console show the JS console by default
  • Fix a NPE in the ModifyArg mixin
  • Item can no longer be constructed with ItemStack.EMPTY; use Item.fromMC instead (which may return null)
  • Renamed Client.getChatGUI to Client.getChatGui
  • Added a Mappings API so users can query mapping information at runtime. Note that this isn't necessary to use MC objects, as Rhino automatically remaps properties and classes.

3.0.0-beta.4

16 Jul 00:39
c98fc30
Compare
Choose a tag to compare
3.0.0-beta.4 Pre-release
Pre-release
  • Fixed /ct dump not actually sending any messages
  • Improved reliability of /ct files
  • Fixed Client.currentGui.close() crashing if not invoked from the main thread
  • Fixed Message.{chat,edit}(), as well as click/hover events not working
  • BREAKING: Removed Config.modulesFolder
  • Added a completely new Commands API which provides a new way to create commands using the (almost) full power of Brigadier.

3.0.0-beta.3

08 Jul 22:44
02650bb
Compare
Choose a tag to compare
3.0.0-beta.3 Pre-release
Pre-release
  • Add 1.20.1 support
  • Fix Client.copy and Client.paste
  • Fix /ct dump not working with no arguments
  • Fix command trigger aliases not working with no arguments
  • Fix commands not working after rejoining a world
  • Fix crash when using KeyBind