[0.6.53] Modding improvements

Ascend From Nine Mountains · published · build 23008579

This release aims to add more hooks and interaction points to the modding API. For those who haven't seen it, we are currently running a modding competition! More details here:

Changes

  • Refined wording for cloud techniques scaling.

  • Added an Item Favouriting system to protect items from accidental loss, preventing them from being sold, auctioned, or deposited.

Bug Fixes

  • Fixed an issue in the Herb Garden where creating a new layout would incorrectly copy the existing arrangement of crops and devices instead of starting with an empty configuration.

ModAPI

  • Updated the mod extraction utility to include a new ignore patterns flag and removed unnecessary _patterns entries from the generated template.json file.

  • Added several new UI injection slots and DOM IDs for modAPI.injectUI() across Combat, Crafting, Jade Cutting, and player status components.

  • Exposed GameTooltip components and utility functions, including parseTooltipLine, expandTooltipTemplate, and expandTooltipTags.

  • Added a toast notification system.

  • Added new hooks: onCreatePlayerCombatEntity, onCreatePlayerCraftingEntity, and onBeforeCraft.

  • Fixed onDeriveRecipeDifficulty to always include control and intensity gameFlags.

  • Added registerKeybinding to the API and a 'Mods' section to the Controls settings menu for custom keybinds.