Modding Help Is there a way to set a crafting station to craft without player input?

Discussion in 'Starbound Modding' started by catgirltreats, Feb 27, 2024.

  1. catgirltreats

    catgirltreats Yeah, You!

    Heya, I'm working on a mod that uses the refinery as a base that turns one item into another, only I want the crafting station to be active as soon as the correct item is placed inside rather than need the player to press a button. I have it set up to work if the player isn't using it (I don't remember if that's the case in the base game or if it's caused by a function I nabbed from FU, which the mod depends on) as the crafting recipe takes a long time (by design). I tried just removing the craft button but that didn't work.
  2. SilvanaDamikola

    SilvanaDamikola Intergalactic Tourist

    Are you considering using lua scripting?
    Look at the mod "The Universal Uncrafter"
    I think it does more or less what you want. It converts one thing into another in a loop as soon as the thing is put inside the input slot.
    You basically define a script to call in the .object json and a time between calls like this:
    "scripts" : [ "mymachine.lua"],
    "scriptDelta" : 30,
    and inside the mymachine.lua script you fill up the callback
    function update(dt)

Share This Page