-
Notifications
You must be signed in to change notification settings - Fork 38
Crafting Time
MrPurple6411 edited this page Jul 27, 2020
·
2 revisions
To edit an item's crafting time, you need to call CraftDataHandler.SetCraftingTime()
, a method sitting in the SMLHelper.V2.Handlers
namespace
There is only one overload for this method
CraftDataHandler.SetCraftingTime([TechType] techType, [float] time);
-
[TechType] techType
is the item for which you want to modify the crafting time. This can be both an existing or a custom item.
Example: TechType.TitaniumIngot
-
[float] time
is the desired crafting time of the item.
Example: 0.01f
Using this knowledge, if we wanted to add make Titanium Ingots craft faster, we could do this:
CraftDataHandler.SetCraftingTime(TechType.TitaniumIngot, 0.01f);
Congratulations! You have enabled fast-craft for titanium ingots!
If there is something missing or ambiguous, please create an issue or contact us on the Subnautica Modding Discord using our tags:
- PrimeSonic:
@PrimeSonic#0667
- Metious:
@Metious#3682
Please note that some pages are under construction and the links to them will be enabled as they are completed
[Adding]
- Items/GameObjects using Asset Classes
- Asynchronous loading for ModPrefab
- [Custom Scanner Unlocks]
- Items/GameObjects to the Spawning System
- [Recipes to uncraftable items]
- [Custom Mouse Click Actions]
[Editing]
- Background Type
- Crafting Time
- Equipment Type
- Quick Slot Type
- Size in Inventory
- [Recipes for craftable items]
- Harvest Settings
- BioReactor Fuel Values
- [Scanning Count/Time]
- [Spawning (Where/How often/How many)]
[General Utilities]
- In-Game Options Menu
- Adding crafting recipes for other mods items
- Using items from other mods
- Texture/Sprite Utilities
- [Adding/Playing Audio]
- Config Files using Abstract Json Config class
- Custom Console Commands
- [Registering OnSave/OnQuit Actions]
[Language]