1. Welcome to the official Starbound Mod repository, Guest! Not sure how to install your mods? Check out the installation guide or check out the modding help thread for more guides.
    Outdated Mods have been moved to their own category! If you update your mod please let a moderator know so we can move it back to the active section.
    Dismiss Notice

Lua Hooks 0.2

Run code inside vanilla starbound files without modifying them

Tags:
  1. olsonpm
    This mod is meant to be used by other mods. It doesn't affect your game by
    itself. It's also fairly complex due to how the lua code works in starbound. If
    you feel this mod may help you but are having trouble understanding how it
    works, please file a github issue so I can help out.


    What is it?
    This mod enables dependent mods to run code inside vanilla starbound files
    without modifying the file themselves.


    Why create it?
    To have a reliable way for all mods to run code in the context of vanilla files
    which can't be wrapped via json patches.

    **Initially I created this to modify player_primary.lua - however bk3k pointed
    out this method may break compatibility with existing mods which wrap vanilla
    files via json patches. Not all vanilla files can be wrapped via json
    patches so this library is still relevant, however I don't currently have a
    need to modify any vanilla behavior besides player_primary.lua so I removed
    the vanilla hooks. I also removed the examples previously listed in the
    readme because they're not very useful without existing code to reference.



    How to install it
    Like this
    Mod Pack Permissions:
    Anyone can use this mod in their mod compilation without the author's consent.
    Mod Assets Permissions:
    Anyone can alter/redistribute the mod's assets without the author's consent.
    Sissyboi-rena and DrPvtSkittles like this.

Recent Updates

  1. Compatibility update