Thread: Difference between revisions
Ratchet 68 (talk | contribs) |
(Add maximum thread capacity information) |
||
Line 10: | Line 10: | ||
|max_units=10 | |max_units=10 | ||
|class_name = Base.Thread | |class_name = Base.Thread | ||
}}'''Thread''' is an item used in [[Tailoring|tailoring]], [[Carpentry Guide|carpentry]] and [[First Aid|first aid]]. | }}'''Thread''' is an item used in [[Tailoring|tailoring]], [[Carpentry Guide|carpentry]] and [[First Aid|first aid]]. It has a maximum capacity of 10 units. | ||
==Usage== | ==Usage== |
Revision as of 12:22, 7 July 2022
Thread | |
---|---|
General | |
Category | Item |
Encumbrance | 0.1 |
Function |
Craft mattress Stitch deep wounds |
Technical details | |
Base ID | Base.Thread |
Thread is an item used in tailoring, carpentry and first aid. It has a maximum capacity of 10 units.
Usage
Tailoring
Thread is needed to repair and fortify clothes with the tailoring skill.
Crafting
Thread is required in crafting a mattress.
Medical
Thread can be used with a needle to stitch deep wounds, however causing more pain than using a suture needle.
Crafting
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 | Ingredient 4 |
---|---|---|---|---|---|---|---|
Mattress x1 |
none | Needle or Suture Needle |
Thread (5 units) (consumed) |
Pillow x5 (consumed) |
Sheet x5 (consumed) |
Distribution
Thread can be found in sheds, stores and some vehicles. It can also be gathered when tearing rags.
Code
Item
From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43
item Thread Weight = 0.1, Type = Drainable, UseWhileEquipped = FALSE, UseDelta = 0.1, DisplayName = Thread, Icon = Thread, cantBeConsolided = TRUE,
Obtaining from ripping clothing
From recipecode.txt (Project Zomboid directory/media/lua/server/) Retrieved: Build 41.50
-- add thread sometimes, depending on tailoring level if ZombRand(7) < player:getPerkLevel(Perks.Tailoring) + 1 then local max = 2; if nbrOfCoveredParts then max = nbrOfCoveredParts; if max > 6 then max = 6; end end max = ZombRand(2, max); local thread = InventoryItemFactory.CreateItem("Base.Thread"); for i=1,10-max do thread:Use(); end player:getInventory():AddItem(thread); end