Message from TeK: My discord account got hacked! Please use the new discord!New Discord server

Craft From All Storage

Allows you to craft with resources in any storage container.


129 Likes

112625 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

Features

  • It can take partial resources from each inventory.
  • It should not count resources in inventories opened by other players
  • You can toggle the inclusion / exclusion of a chest by toggling it with R while looking at the chest
  • Can put planks into cooking,smelter,purifier from storage
  • Remote storages being used now render with an open and close visual, this works in MP for other people with the mod installed.

Multiplayer

  • crafting should sync used resources to other players the same way as if a player had pulled resources from the storage.
  • containers opened by other players will be skipped when checking for amount of resources.
  • When players join, the exclusion / inclusion status is synced
  • When exclusion / inclusion is toggled, it is synced to other players
  • Renders chests as opening / closing when used for remote crafting.

Supported mods

Auto Recipe Redux

link to mod

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

Inventory Caching

link to mod

  • Might give an FPS boost, I personally don't use it myself.

Troubleshooting

This mod is released as is and may contain bugs
In case of problems, please create an issue If you don't have a github account you can also tag me on the Raft Modding discord.

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 2022-07-04