Modding Help An item with several uses.

Discussion in 'Starbound Modding' started by TeddyMadBlue, Dec 8, 2019.

  1. TeddyMadBlue

    TeddyMadBlue Void-Bound Voyager

    Hi guys, im trying make an item like a food, it can be consumed more than once, can someone help me??
     
  2. bk3k

    bk3k Oxygen Tank

    Used in a normal food manor? Nope that won't work. Since eating is hard-coded. But you can make your food items stack just by NOT having this line
    Code:
    "maxStack" : 1,
    Increase the output of the recipe to compensate if desired.

    Now you could fake it with an active item. The item could give your itself but with altered parameters. Thus having "partially eaten" food that isn't really food. If the parameter exceeds a threshold, don't return it (it is fully consumed). This will require you to know some LUA of course.
     

Share This Page