Rubber Duck (battery)

From PZwiki
Project ZomboidItemsMiscellaneous itemsJunkRubber Duck (battery)
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Rubber Duck
RubberDucky Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Function
Insert/remove battery.
Technical
Item ID
Base.Rubberducky2
PlushSpiffo.pngThis article is about rubber duck with a battery. For decorative item with no battery, see Rubber Duck.

A rubber duck is a test item that can be spawned in debug mode, by admin in multiplayer or through mods, it is visible in crafting recipes.

Crafting

Unlike other electric craftable items, you don’t need a screwdriver to disassemble this item. The player just needs to hover over the item in the player’s inventory, the option to Remove Battery will appear. After doing which, the player will gain a battery from the process.


Product Ingredients Tools Requirements Workstation XP
Battery.png
Battery
One of:
Flashlight.png Flashlight ×1
Flashlight2.png Hand Torch ×1
Rubberducky.png Rubber Duck ×1
none none none none
Rubberducky.png
Rubber Duck
Rubberducky.png Rubber Duck ×1
Battery.png Battery ×1
none none none none

Distribution

This item can only be spawned in debug mode, by admin in multiplayer or through mods, it is visible in crafting recipes.

Trivia

  • This item is likely a reference to rubber duck debugging, a method of troubleshooting where a programmer explains their code verbally to a rubber duck or similar item in order to figure out the problem.

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Rubberducky2
    {
        DisplayCategory = Junk,
        Weight	=	0.1,
        Type	=	Drainable,
        UseDelta	=	0.003,
        DisplayName	=	Rubber Duck,
        Icon	=	Rubberducky,
        WorldStaticModel = Rubberducky,
        cantBeConsolided = TRUE,
    }

See also