Modding Help Storage containers that hold only specific items?

Discussion in 'Starbound Modding' started by Seluna, May 22, 2015.

  1. Seluna

    Seluna Orbital Explorer

    So, as the title suggests, I'm wanting to create storage containers that only store specific items.

    For example, I would love you make a shelf or something similar that is able to hold only farming equipment, or tools...

    Maybe have a bag that stores only seeds or produce...

    Is there any known way to do this? I know it seems a little strange, but I have an idea in mind I'd like to implement this with ^^
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    Only through Lua.
    The script would have to constantly scan items placed inside and spit out anything that doesn't fit within the parameters.

    Of course the problem being there really isn't a good way to designate something as a "tool"
    So you would have to explicitly write the name of each item allowed.

    So modded items would not be properly filtered.
     
  3. Seluna

    Seluna Orbital Explorer

    Hmm, alrighty. Makes sense :p But thanks anyways ^.^
     
  4. Healthire

    Healthire Can't Most Program the Least

    Actually, there is root.itemType(itemName) which will give you the type of item. It's used in pets to make them only eat consumables, and can be used to see if an item is of the miningtool type.
     
    Inf_Wolf14 and The | Suit like this.
  5. The | Suit

    The | Suit Agent S. Forum Moderator

    Being a developer is cheating.
    But thanks
     
    lazarus78 likes this.

Share This Page