Template:Infobox entity/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
mNo edit summary
my guess as to what these parameters mean
Line 3: Line 3:
{{lua|Infobox}}
{{lua|Infobox}}


This template provides a uniform design for entities pages. The following list is kinda outdated.
This template provides a uniform design for entities pages.
<pre width="30px">
<pre width="30px">
{{Entity
{{Entity
Line 14: Line 14:
|damage=
|damage=
|size=
|size=
|speed=
|knockbackresistance=
|spawn=
|spawn=
|equipment=
|usableitems=
|networkid=
|networkid=
|notes=
}}</pre>
}}</pre>


Line 35: Line 40:
| <code>health</code> || The mob's health || ''None''
| <code>health</code> || The mob's health || ''None''
|-
|-
| <code>armor</code> || The mob's armor || ''None''
| <code>armor</code> || The mob's natural armor points || ''None''
|-
|-
| <code>damage</code> || The damage hostile mobs cause to the player || ''None''
| <code>damage</code> || The damage hostile mobs cause to the player || ''None''
|-
|-
| <code>size</code> || Exact height and width (see http://wiki.vg/Entities#Mobs) || ''None''
| <code>size</code> || Hitbox height and width (see http://wiki.vg/Entities#Mobs) || ''None''
|-
| <code>speed</code> || Movement speed attribute || ''None''
|-
| <code>knockbackresistance</code> || Knockback resistance attribute || ''None''
|-
|-
| <code>spawn</code> || Spawn details || ''None''
| <code>spawn</code> || Spawn details || ''None''
|-
| <code>equipment</code> || Equipment that may be dropped || ''None''
|-
| <code>usableitems</code> || Items that can be used on the mob || ''None''
|-
|-
| <code>networkid</code> || The ID number used in network traffic (0-255). || ''None''
| <code>networkid</code> || The ID number used in network traffic (0-255). || ''None''
|-
| <code>notes</code> || Additional notes || ''None''
|}
|}



Revision as of 19:34, 3 September 2020

This is the documentation page. It should be transcluded into Template:Infobox entity. See Template:Documentation for more information.

Template:Entity

This template uses Module:Infobox, a script written in Lua.

This template provides a uniform design for entities pages.

{{Entity
|title= 
|image=
|imagesize=
|health=
|armor=
|behavior=
|damage=
|size=
|speed=
|knockbackresistance=
|spawn=
|equipment=
|usableitems=
|networkid=
|notes=
}}
Parameter Function Default value
title Optional value to use a different title instead of the page name {{BASEPAGENAME}}
image Image of the entity {{{title}}}.png if it exists, otherwise No image.svg (linking to the page where to upload the missing image)
imagesize Adjusts the size of the image 150px
imageN Other images for multistate entities None
imageNsize Adjusts the size of the corresponding image 150px
health The mob's health None
armor The mob's natural armor points None
damage The damage hostile mobs cause to the player None
size Hitbox height and width (see http://wiki.vg/Entities#Mobs) None
speed Movement speed attribute None
knockbackresistance Knockback resistance attribute None
spawn Spawn details None
equipment Equipment that may be dropped None
usableitems Items that can be used on the mob None
networkid The ID number used in network traffic (0-255). None
notes Additional notes None

See also

Minecraft
Minecraft Earth
Minecraft Dungeons
Minecraft Legends
Minecraft Story Mode
Other
Meta


de:Vorlage:Kreatur/Dokumentation fr:Modèle:Entité/doc ja:テンプレート:Entity/doc ko:틀:Entity/doc nl:Sjabloon:Entiteit/doc ru:Шаблон:Сущность/док