Back to NxLabs

NxLabs / Vintage Story

Meltcaster

SBy safwyl

Allows you to melt and recast items into other items. Recipes are fully json configurable!

Meltcaster

Description

🔥Meltcaster🔥(Initial release)


 

The Meltcaster is a smelter-style device used to recycle items like metal-scraps into metal bits and sometimes rare gears. It requires fuel (like charcoal) and input items (like scrap) to begin processing.

The default example recipe includes only the following input:

  • metal-scraps

 

The recipes are fully configurable for both input and output, so feel free to make any recipe you like

To Do:

  • <span style="text-decoration: line-through;">Add folder parsing to separate recipes into individual json files in a custom folder</span> DONE!
  • YAML recipe parsing (for better human readibility)

🧪 Recipe Basics

Each Meltcaster Recipe defines:

  • Input Item: The item you smelt (e.g., metal-scraps)

  • Meltcast Temperature: How hot the furnace needs to be to start processing

  • Meltcast Time: How long it takes to complete smelting

  • Outputs: What you get back, with chances per item

&nbsp;

The initial release of this mod has a single recipe defined as follows:

Input: Metal Scraps

Meltcast Temperature: 1200 C

Meltcast Time: 60s

Outputs:

    • Metal Bits - Group
      • Chance: 100%
      • Quantity: 1
      • Note: Bit type is weighted roll for all metal bits in the game
    • Rusty Gear
      • Chance: 5%
      • Quantity: 1
    • Temporal Gear
      • Chance: 1%
      • Quantity: 1

⚙️ Simple Outputs

Some recipes have simple outputs like:

  • gear-rusty &ndash; 5% chance

  • gear-temporal &ndash; 1% chance

&nbsp;

Each item has a chance defined:

  • On simple outputs this is the chance for that item
  • On group items this is the weighted chance for that item within it's group

🎲 Weighted Output Groups

Outputs can also be part of a group with weighted selection:

  • When the first item of a stack is processed, a random bit from the group is selected based on its weight (rarer bits have lower chances).

  • Each subsequent item will output the same selected bit until the number of items output exceeds the group roll interval defined in the recipe (16 by default).

&nbsp;

This prevents players from "cherry-picking" rare bits by inserting one item at a time.

&nbsp;

Weighted group rolls happen separately from non-group items, the chance defined on the group is the overall chance for entire group. Each item's chance is it's relative weight to other items within that group.

🌡️ Fuel &amp; Temperature

  • The furnace must be ignited with fuel (like charcoal or coal).

  • It heats up gradually; once hot enough, the item starts melting.

Read the full description on Vintage Story ModDB →

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.