Difference between revisions of "Template:Default item tags"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

m (Oops, an extra pair of {brackets})
Line 31: Line 31:
 
|<code>enchantments</code>
 
|<code>enchantments</code>
 
|''Array of Strings''
 
|''Array of Strings''
Enchants the item.
+
Enchants the item (see [[Enchanting#Commands|enchanting]]).
 
|-
 
|-
 
|<code>anvilUses</code>
 
|<code>anvilUses</code>
 
|''Integer''
 
|''Integer''
Number of times anvil was used on the item.
+
Number of times an anvil was used on the item.
 
<noinclude>
 
<noinclude>
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 19:27, 29 December 2018

A template for the default data tags available for items, such as the item's name.

While not every items needs to display data tags,

Usage

Place the template in a two-column table with the columns "name" and "description". It's recommended to put the item's unique data tags at the top, and the default template at the bottom of the table.

''Main article: [[Data tags]]''

{| class='wikitable'
|'''Name'''
|'''Description'''
{{default item tags}}
|}

The result of the above code is displayed below:

Template

Main article: Data tags

Name Description
name String

Renames the item.

enchantments Array of Strings

Enchants the item (see enchanting).

anvilUses Integer

Number of times an anvil was used on the item.