Dice: Difference between revisions

From PZwiki
(added "languages")
m (Automated CodeBox update)
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Notice|Future}}
{{Header|Project Zomboid|Items|Miscellaneous items|Junk}}
{{languages|Dice}}
{{Page version|41.78.16}}
{{Items
{{Infobox item
|image = Dice.png  
|name=Dice
|weight = 0.2
|model=Dice_Model.png
}} <!--/infobox-->
|model_width=200px
|icon=Dice.png
|icon_name=Dice
|category=Junk
|weight=0.2
|function=Roll a random number
|item_id=Base.Dice
}}


A pair of dice. Not currently useable (2.9.10)
'''Dice''' are a miscellaneous [[Items|item]] with very little use.


<!--
==Usage==
== Crafting ==
The only use of the dice is in using [[multiplayer]] commands. If the player has a dice in their inventory, they can use the command <code>/roll #</code>, where <code>#</code> is a number up to 100. This can be used as a random number generator by hardcore role-players to, for example, decide who will perform a particular task. Otherwise it can be used in conjunction with a [[pencil]] and [[notepad]] to play games such as [[wikipedia:Yahtzee|Yahtzee]], although it should be noted that this will ''not'' award the player with any [[Moodles|mood]] benefits.


ITEM NAME can be used in the following recipes:
==Distribution==
The loot distributions can be found in the table(s) below.


{| class="wikitable" width="550" style="text-align:center;"
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
|-
! Ingredients || Other Items || Output || Description
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|-
| Ingredient + [[Ingredient]] || None || [[What the recipe makes]] || Brief description of what it makes.
|bar
|[[counter]]
|4
|6
|-
|rowspan="3"|closet
|[[crate]]
|4
|8
|-
|[[crate]]
|4
|8
|-
|[[crate]]  
|4
|8
|-
|generalstore
|[[shelves]]  
|4
|8
|}
|}
-->


== Code ==
==Code==
<nowiki>item Dice
{{CodeBox
{
| {{CodeSnip
Weight = 0.2,
  | lang = java
  | line = true
  | start = 1766
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Dice
{
    DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
Type = Normal,
DisplayName = Dice,
DisplayName = Dice,
Icon = Dice,
Icon = Dice,
}</nowiki>
WorldStaticModel = Dice,
}
}}
}}


[[Category:items]]
==See also==
*[[Playing Cards]]
{{Navbox miscellaneous items|junk}}

Revision as of 10:33, 26 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Dice
Dice Model.png
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Roll a random number
Technical
Item ID
Base.Dice

Dice are a miscellaneous item with very little use.

Usage

The only use of the dice is in using multiplayer commands. If the player has a dice in their inventory, they can use the command /roll #, where # is a number up to 100. This can be used as a random number generator by hardcore role-players to, for example, decide who will perform a particular task. Otherwise it can be used in conjunction with a pencil and notepad to play games such as Yahtzee, although it should be noted that this will not award the player with any mood benefits.

Distribution

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

Containers
Building/Room Container Rolls Chance
bar counter 4 6
closet crate 4 8
crate 4 8
crate 4 8
generalstore shelves 4 8

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 Dice
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Dice,
		Icon	=	Dice,
		WorldStaticModel = Dice,
	}

See also

Template:Navbox miscellaneous items