Auto Crafting Table (for modders)

If you liked this item, please rate it up on Steam Workshop page.

Authors: swefpifh, natsumi or something idk

Last revision: 28 Feb, 2024 at 01:39 UTC

File size: 230.47 KB

On Steam Workshop

Description:

♦ Compatibility with v1.4.4
♦ Raw files : https://github.com/swefpifh/Starbound-Auto-Crafting-Table

This mod is designed for people with no programming skills. This will allow budding modders to use this crafting table for a variety of applications.

CONTENT :
  • Up to 3 ingredients to create a recipe
  • Time management for each recipe
  • Multiple output system with chance management
  • Consumption or passive use for every input ingredient
  • Dynamic recipe progress information displayed in a temporary text bubble

Mod Pack Permissions

Anyone can use this mod in their mod compilation without the author’s consent.

Mod Assets Permissions

Anyone can alter/redistribute the mod’s assets without the author’s consent, but the contributor(s) must be named for his work.

If you want test this Auto Crafting Table, you can use this command ingame with the admin mode :

    /spawnitem MFCautocraftingtable

…And you can use these recipes to test this crafting table.

RECIPES INFORMATIONS :

To use this crafting table with your items, simply edit the recipes_3i.json file in the object folder.

Here’s how a recipe is structured :

{ "input1": {"ITEM ID": [NUMBER, CONSUMPTION]}, "input2": {}, "input3": {}, "outputs": [ {"item": ["ITEM ID",NUMBER], "chance": POURCENT OF CHANCE} ], "time" : TIME },

ITEM ID:

⤷ The item id for the ingredient (input) or for the final construction item (output)

NUMBER:

⤷ Number of items to be consumed or produced

CONSUMPTION:

⤷ Defines the number of items consumed. 0 = no item consumed, 1 = one item consumed, 2 = two items consumed, etc…

POURCENT OF CHANCE:

⤷ This is the percentage chance of producing an object. 100 = Production guaranteed, 50 = One chance in two of producing the object, etc…

TIME:

⤷ This is the object’s production time, calculated in seconds.

Each Input corresponds to an ingredient in your recipe. You can create a recipe with just one or two ingredients if you wish. Like this example:

{ "input1": {"acfONE": [1, 1]}, "input2": {"acfTWO": [1, 1]}, "input3": {}, "outputs": [ {"item": ["acfTHREE",1], "chance": 100} ], "time" : 1 },

You can also add several output items.

{ "input1": {"acfRED": [1, 1]}, "input2": {"acfGREEN": [1, 1]}, "input3": {}, "outputs": [ {"item": ["acfYELLOW",1], "chance": 100}, {"item": ["acfBLACK",1], "chance": 5} ], "time" : 1 },