Modding Help some kind of Mod integration with other mods

Discussion in 'Starbound Modding' started by DraLUSAD, Jun 24, 2019.

  1. DraLUSAD

    DraLUSAD Giant Laser Beams

    What I'm wanting to do, is having the Base mod, see other items from other mods, which, should the extra mod be removed, its no longer visible/craftable

    Base Mod: Industrialization
    Target Mod: Bonsai Trees

    The Blue Print
    Code:
    [
      [
        {
          "op": "test",
          "path": "/learnBlueprintsOnPickup",
          "inverse": true
        },
        {
          "op": "add",
          "path": "/learnBlueprintsOnPickup",
          "value" : [ ]
        }
      ],
      [
        {
          "op": "add",
          "path": "/learnBlueprintsOnPickup/-",
          "value": "genebonsai"
        }
      ]
    ]
    Whiles Industrialization is installed and Bonsai Trees along with it, picking up the Bonsai seed will unlock the blue print

    I'm puzzled to figuring out how to add the object, to being only present when "Target Mod" is active and no longer available when "Target mod" is removed
     
  2. Zaakari

    Zaakari Pangalactic Porcupine

    I did a bit of looking, and came across this post: https://community.playstarbound.com/threads/check-if-mod-or-file-exists.128019/
    It sounds like they were able to do what you are wanting. In the last post, bk3k patched a new object into the "player.config" called "modEnvironment", added a property to that object (based on the mod in use), and then checked for that object's value from a different mod.
     

Share This Page