Craft From All Storage

Allows you to craft with resources in any storage container.


13 Likes

7418 Downloads
banner for the Craft From All Storage mod

Craft From All Storage

This is a mod for Raft based on the Craft From Storage mod by Azzmurr

This mods allows you to craft items with resources from both your inventory and other storages. Resources are taken in the following priority

  • your inventory
  • Currently open storage
  • All other storages

It can take partial resources from each inventory. It should not count resources in inventories opened by other players

crafting should sync used resources to other players containers opened by other players will be skipped when checking for amount of resources.

Supported mods

Auto Recipe Redux

  • Fuel will be pulled from storage (planks)
  • The red marking for missing ingredients will look in storage
  • items will be removed from storage

Troubleshooting

This mod is released as is and may contain bugs
In case of problems, please create an issue

Harmony Patches

[HarmonyPatch(typeof(CostMultiple), "HasEnoughInInventory")]
[HarmonyPatch(typeof(BuildingUI_CostBox), "SetAmountInInventory")]
[HarmonyPatch(typeof(PlayerInventory), "RemoveCostMultiple")]
[HarmonyPatch(typeof(Inventory), "GetItemCount", typeof(Item_Base))]
[HarmonyPatch(typeof(Inventory), "RemoveItem", typeof(string), typeof(int))]
[HarmonyPatch(typeof(CookingTable_Slot), "InsertItem")]

Description last changed on 2021-07-28