Thread: Difference between revisions

From PZwiki
m (Automated Formatting for Infobox and Section Headers)
m (Versions)
Line 106: Line 106:
   | source = items.txt
   | source = items.txt
   | retrieved = true
   | retrieved = true
   | version = 40
   | version = 40.43
   | code =
   | code =
   item Thread
   item Thread
Line 127: Line 127:
   | source = recipecode.txt
   | source = recipecode.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41.78.16
   | code =
   | code =
-- add thread sometimes, depending on tailoring level
-- add thread sometimes, depending on tailoring level

Revision as of 23:20, 16 March 2024

Spiffo controlyourself.png
This page was last updated for an older version (40.43).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Thread
Thread Model.png
General
Category
Material
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Function
Craft mattress
Stitch deep wounds
Properties
Capacity
10 units
Technical
Item 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. 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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
Mattress.png
Mattress
0 XP none
Needle.png Needle
(keep)
Thread.png
Thread
(5 units)

(consumed)
Sheet.png
Sheet x5
(consumed)
Pillow.png
Pillow x5
(consumed)

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
bedroom 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

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\items.txt

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

Source: ProjectZomboid\media\scripts\recipecode.txt

Retrieved: Build 41.78.16
-- 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

See also

Template:Navbox medical