Thread: Difference between revisions
m (Moodle replacement) |
m (Automated Formatting) |
||
Line 14: | Line 14: | ||
|item_id=Base.Thread | |item_id=Base.Thread | ||
}} | }} | ||
'''Thread''' is an item used in [[tailoring]], [[carpentry]] and [[First Aid|first aid]]. It has a maximum capacity of 10 units. | '''Thread''' is an item used in [[tailoring]], [[carpentry]] and [[First Aid|first aid]]. It has a maximum capacity of 10 units. | ||
Line 43: | Line 42: | ||
! style="width: 3.2em;" | Chance | ! style="width: 3.2em;" | Chance | ||
|- | |- | ||
|rowspan="3"|bedroom | |rowspan="3"|bedroom | ||
|[[crate]] | |[[crate]] | ||
|1 | |1 | ||
|1 | |1 | ||
|- | |- | ||
|[[crate]] | |[[crate]] | ||
|4 | |4 | ||
|2 | |2 | ||
|- | |- | ||
|[[crate]] | |[[crate]] | ||
|4 | |4 | ||
|2 | |2 | ||
|- | |- | ||
|departmentstorage | |departmentstorage | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|1 | |1 | ||
|- | |- | ||
|kitchen | |kitchen | ||
|[[counter]] | |[[counter]] | ||
|4 | |4 | ||
|5 | |5 | ||
|- | |- | ||
|rowspan="2"|morgue | |rowspan="2"|morgue | ||
|[[counter]] | |[[counter]] | ||
|4 | |4 | ||
|1 | |1 | ||
|- | |- | ||
|[[counter]] | |[[counter]] | ||
|4 | |4 | ||
|2 | |2 | ||
|- | |- | ||
|rowspan="6"|sewingstorage | |rowspan="6"|sewingstorage | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|1 | |1 | ||
|- | |- | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|1 | |1 | ||
|- | |- | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|2 | |2 | ||
|- | |- | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|1 | |1 | ||
|- | |- | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|1 | |1 | ||
|- | |- | ||
|[[metal_shelves]] | |[[metal_shelves]] | ||
|4 | |4 | ||
|2 | |2 | ||
|} | |} | ||
Line 103: | Line 102: | ||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 124: | Line 124: | ||
SurvivalGear = TRUE, | SurvivalGear = TRUE, | ||
WorldStaticModel = Thread, | WorldStaticModel = Thread, | ||
} | } | ||
}} | }} | ||
Revision as of 12:50, 14 April 2024
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. Each application of a padding or patch uses 1 unit of thread.
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 | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Mattress |
Thread ×2 unit(s) Sheet ×5 Pillow ×5 |
Needle (tag) |
none | none | none |
Distribution
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
bedroom | crate | 1 | 1 |
crate | 4 | 2 | |
crate | 4 | 2 | |
departmentstorage | metal_shelves | 4 | 1 |
kitchen | counter | 4 | 5 |
morgue | counter | 4 | 1 |
counter | 4 | 2 | |
sewingstorage | metal_shelves | 4 | 1 |
metal_shelves | 4 | 1 | |
metal_shelves | 4 | 2 | |
metal_shelves | 4 | 1 | |
metal_shelves | 4 | 1 | |
metal_shelves | 4 | 2 |
Code
Item
Source: ProjectZomboid\media\scripts\items.txt
item Thread
{
DisplayCategory = Material,
Weight = 0.1,
Type = Drainable,
UseWhileEquipped = FALSE,
UseDelta = 0.1,
DisplayName = Thread,
Icon = Thread,
ConsolidateOption = ContextMenu_Merge,
SurvivalGear = TRUE,
WorldStaticModel = Thread,
}
Obtaining from ripping clothing
Source: ProjectZomboid\media\scripts\recipecode.txt
-- 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