Content added Content deleted
No edit summary |
No edit summary |
||
Line 8:
! colspan="3" class="infobox-title" style="font-size: 90%" | Statistics
|-
{{#if: {{{type|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} [[NPCs|Type]]:
Line 14:
{{!}}-
}}
{{#if: {{{location|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Location(s):
Line 20:
{{!}}-
}}
{{#if: {{{aggressive|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Hostile:
{{#switch: {{lc {{{aggressive|}}} }}
| no
| 0 = {{!}} colspan="2" class="infobox-text" {{!}} No
| yes
| 1 = {{!}} colspan="2" class="infobox-text" {{!}} Yes
}}
{{!}}-
}}
{{#if: {{{healthPoints|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} HP:
Line 35 ⟶ 37:
{{!}}-
}}
{{#if: {{{damage|}}}
|
{{!}} class="infobox-texttitle" style="padding-right: 10px" {{!}} Damage:
Line 44 ⟶ 46:
| colspan="3" class="infobox-title" style="font-size: 90%" | Technical Information
|-
{{#if: {{{vox|}}}
|
{{!}} class="infobox-texttitle" {{!}} Voxel Model
Line 50 ⟶ 52:
{{!}}-
}}
{{#if: {{{config|}}}
|
{{!}} class="infobox-texttitle" {{!}} Entity Config
|
Revision as of 20:12, 10 February 2023
Template:Infobox npc | ||
---|---|---|
Statistics | ||
Technical Information |
Displays a floating infobox with information about an NPC entity.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | The type of entity the NPC is.
| String | suggested |
Location | location | The biome where the NPC is located.
| String | suggested |
Hostility | aggressive | Does the NPC attack the player on sight?
| Boolean | suggested |
Health Points | healthPoints | The amount of HP the NPC has.
| Number | optional |
Damage | damage | The amount of damage the NPC's attacks deal.
| Number | optional |
Vox model | vox | A link to the directory in the game's source repository with the NPC's entity vox files. | URL | optional |
NPC configuration | config | A link to this NPC entity's configuration file in the game's source repository. | URL | optional |