Template:Entity infobox: Difference between revisions
From Vintage Story Wiki
No edit summary |
(attempt to add whether the creature can be domesticated by breeding successive generations) |
||
(8 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
|image={{{2|{{{image|}}}}}} | |image={{{2|{{{image|}}}}}} | ||
|align={{{align|}}} | |align={{{align|}}} | ||
|rows={{IRow | <translate>Type</translate> | {{{type}}} }} | |rows={{IRow | <translate><!--T:2--> Type</translate> | {{{type}}} }} | ||
{{IRow | <translate>Behavior</translate> | {{{behavior}}} | 1}} | {{IRow | <translate><!--T:3--> Behavior</translate> | {{{behavior}}} | 1}} | ||
{{#if:{{{health|}}}|{{IRow | <translate>Health</translate> | {{{health}}} }} }} | {{#if:{{{domesticable|}}}|{{IRow | <translate> Domesticable</translate> | {{{domesticable}}} }} }} | ||
{{#if:{{{attack|}}}|{{IRow | <translate> | {{#if:{{{health|}}}|{{IRow | <translate><!--T:4--> Health</translate> | {{{health}}} }} }} | ||
{{#if:{{{light|{{{blocks|{{{groupsize|{{{temp|{{{forest|{{{shrubs|{{{ylevel|}}}}}}}}}}}}}}}}}}}}}|{{IRow | <translate>Spawn</translate> | {{Spawn|light={{{light|}}}|blocks={{{blocks|}}}|groupsize={{{groupsize|}}}|temp={{{temp|}}}|forest={{{forest|}}}|shrubs={{{shrubs|}}}|ylevel={{{ylevel|}}}}}}}}} | {{#if:{{{maxSpeed|}}}|{{IRow | <translate><!--T:8--> Max Speed</translate> | {{{maxSpeed}}} }} }} | ||
{{#if:{{{drops|}}}|{{IRow | <translate>Drops</translate> | header=1}} | {{#if:{{{attack|}}}|{{IRow | <translate><!--T:5--> Base attack</translate> | {{{attack}}}<br>'''<translate><!--T:1--> Tier:</translate>''' {{{tier}}} | 1}} }} | ||
{{#if:{{{light|{{{blocks|{{{groupsize|{{{rain|{{{temp|{{{forest|{{{shrubs|{{{ylevel|}}}}}}}}}}}}}}}}}}}}}}}}|{{IRow | <translate><!--T:6--> Spawn</translate> | {{Spawn|light={{{light|}}}|blocks={{{blocks|}}}|groupsize={{{groupsize|}}}|rain={{{rain|}}}|temp={{{temp|}}}|forest={{{forest|}}}|shrubs={{{shrubs|}}}|ylevel={{{ylevel|}}}}}}}}} | |||
{{#if:{{{drops|}}}|{{IRow | <translate><!--T:7--> Drops</translate> | header=1}} | |||
{{{drops}}} }} | {{{drops}}} }} | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude>{{doc}}</noinclude> | <noinclude>{{doc}}</noinclude> |
Latest revision as of 04:02, 21 January 2024
[view | edit | history | purge this page]Documentation
Surface drifter | |
---|---|
"Surface monster" | |
Type | Humanoid |
Behavior | Hostile |
Health | 12 |
Max Speed | 0.06 |
Base attack | 2.5 Tier: 0 |
Spawn |
Light level: 7
Blocks: Air, Tall grass Y level: 0.85 to 2 Group size: 1 ± 3 Rain: 0.4 min Temperature:-15 to 15 Forest: 0.5 to 1 Shrubs: 0.5 to 1 |
Drops | |
Flax fibers | 20% |
Temporal gear | 2.66% |
Rusty gear | 1% |
This template creates an infobox for entities in the game.
It uses the templates {{Infobox}}
, {{Infobox row}}
(also named {{IRow}}
) and {{Spawn}}
.
Parameter | Description | Type | Required or Optional, default if applicable | Example |
---|---|---|---|---|
name | The name of the entity | String | Required | Surface drifter |
subtitle | A smaller text shown below the name | String | Optional | Surface monster |
image | An image filename to be displayed beneath the name (no "File:" prefix or ".png" suffix required) |
File name | Required | Normal_Drifter |
align | Override to align this box differently | left, right or center | Optional | right |
type | The entity's type (can be a link to another wiki page) |
Wikitext | Optional | Humanoid |
behavior | The entity's behavior towards players (can be a link to another wiki page) |
Wikitext | Optional | Hostile |
health | The entity's life points | Number | Optional | 12 |
maxSpeed | The entity's maximum speed (generaly when they flee) | Number | Optional | 0.06 |
attack | The entity's attack power (HP) | Number | Optional | 2.5 |
tier | The tier of the entity's damages | Number | Required if attack is defined | 0 |
light | The max light level required for the entity to spawn | Number | Optional | 7 |
blocks | The type of blocks where the entity will spawn on | String | Optional | Air, Tall grass |
groupsize | How many entities are spawned at the same time | String | Optional | 1 ± 3 |
rain | How much rain is needed for the entity to spawn in this region | String | Optional | 0.4 min |
temp | The range of temperatures needed for the entity to spawn in this region | String | Optional | -15 to 15 |
forest | The density of trees necessary for the creature to spawn in this forest | String | Optional | 0.5 to 1 |
shrub | The density of bushes necessary for the creature to spawn in this region | String | Optional | 0.5 to 1 |
ylevel | The range of altitude where the entity can spawn (0=the mantle, 1=the surface) | String | Optional | 0.85 to 2 |
drops | List of items droped by the dead entity when it is harvested | Code | Optional | See Template:IRow |
[view | edit | history | purge this page]The above documentation is transcluded from Template:Entity infobox/doc.