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

MinionLib 2018-06-05

Terraria-like minion system, in SB.

  1. laz2727
    MinionLib is a library mod! It contains no content by itself.

    MinionLib works similarily to vanilla pet system, but there are key differences:

    It allows for more than one minion. Vanilla system does too, but there's a glitch that automatically deactivates one other pod when a new one is activated. Maximum amount is equal to the player's "maxMinions" stat, 2 by default. Overflow is simply deactivated.
    It needs the pod item to either have one minion uuid stored in "podUuid", like vanilla, or a table of {"uuid":"minionData"}. It also needs a "minionSpawner" tag for pods with more than one minion. Uuids need to be unique.
    Most messages use the "minions" prefix. Some still use the "pets" prefix because they're controlled by other vanilla luas. These messages are pets.updatePet, pets.disassociatePet, pets.associatePet and pets.setPodCollar.
    The controller has an additional message called "minions.slotsLeft" that returns the current empty slots.

    Example: https://pastebin.com/spkEYhp5 https://pastebin.com/hzXvx1iJ

    Steamed version: https://steamcommunity.com/sharedfiles/filedetails/?id=1401598996

    My patreon is https://patreon.com/shrug ¯\_(ツ)_/¯
    Mod Pack Permissions:
    Anyone can use this mod in their mod compilation without the author's consent.
    Mod Assets Permissions:
    You must get the author's consent before altering/redistributing any assets included in this mod.