• v2.1.0 5c1fe34f46

    NorbiPeti released this 2021-12-15 01:13:55 +00:00 | 64 commits to master since this release

    This update brings compatibility for Techblox 2021.12.13.16.53 and adds new features and fixes. This update is backwards compatible with mods that work with TechbloxModdingAPI 2.0.

    Additions:

    • (Mostly) automatically generating block classes
      • Takes a block name and some entity components minimum and creates the corresponding class
    • Added ECS object tracking which allows for reusing the objects returned by the API and emitting events to these objects
      • Added the Seat.Enter and Seat.Exit events for specific seats using this
    • Added support for entering and exiting seats from code
    • Implemented support for existing mod commands as the game's code is no longer present
    • Added the following block classes (well, re-added mostly):
      • LogicGate
      • Motor
      • Piston
      • Seat
      • Servo
      • WheelRig
    • Added support for getting the wire the player is looking at

    Fixes:

    • Made the Game.Enter event only fire when the game has finished loading
    • Fixed a crash inside an event handler preventing other handlers from being called
    • ToggleTimeMode() now triggers the full switch animation as the player wasn't positioned correctly otherwise
    • Fixed the Block.Static property

    Known issues:

    • Changing an existing block's flipped state or material may cause the game to crash
    • Block visuals don't update after moving/scaling/etc.
    Downloads