Template:Entity infobox/doc: Difference between revisions
From Vintage Story Wiki
(Marked this version for translation) |
(attempt to add whether the creature can be domesticated by breeding successive generations) |
||
(18 intermediate revisions by one other user not shown) | |||
Line 9: | Line 9: | ||
|behavior={{ll|:Category:Hostile creatures|<translate><!--T:15--> Hostile</translate>}} | |behavior={{ll|:Category:Hostile creatures|<translate><!--T:15--> Hostile</translate>}} | ||
|health=12 | |health=12 | ||
|maxSpeed=0.06 | |||
|attack=2.5 | |attack=2.5 | ||
|tier=0 | |tier=0 | ||
Line 14: | Line 15: | ||
|blocks=<translate><!--T:16--> Air, Tall grass</translate> | |blocks=<translate><!--T:16--> Air, Tall grass</translate> | ||
|groupsize=1 ± 3 | |groupsize=1 ± 3 | ||
|rain=0.4 <translate><!--T:55--> min</translate> | |||
|temp=-15 <translate><!--T:56--> to</translate> 15 | |||
|forest=0.5 <translate><!--T:57--> to</translate> 1 | |||
|shrubs=0.5 <translate><!--T:58--> to</translate> 1 | |||
|ylevel=0.85 <translate><!--T:17--> to</translate> 2 | |ylevel=0.85 <translate><!--T:17--> to</translate> 2 | ||
|drops={{IRow | {{Icon link|Grid_Flax_fibers.png|Special:MyLanguage/Flax fibers|Flax fibers}} | 20%}} | |drops={{IRow | {{Icon link|Grid_Flax_fibers.png|Special:MyLanguage/Flax fibers|Flax fibers}} | 20%}} | ||
Line 36: | Line 41: | ||
| ''subtitle'' || <translate><!--T:26--> A smaller text shown below the name</translate> || <translate><!--T:27--> String</translate> || <translate><!--T:28--> Optional</translate> || <translate><!--T:29--> Surface monster</translate> | | ''subtitle'' || <translate><!--T:26--> A smaller text shown below the name</translate> || <translate><!--T:27--> String</translate> || <translate><!--T:28--> Optional</translate> || <translate><!--T:29--> Surface monster</translate> | ||
|- | |- | ||
| ''image'' || <translate><!--T:30--> An image filename to be displayed beneath the name<br>(no "File:" prefix or ".png" suffix required)</translate> || <translate><!--T:31--> | | ''image'' || <translate><!--T:30--> An image filename to be displayed beneath the name<br>(no "File:" prefix or ".png" suffix required)</translate> || <translate><!--T:31--> File name</translate> || <translate><!--T:32--> Required</translate> || Normal_Drifter | ||
|- | |- | ||
| ''align'' || <translate><!--T:33--> Override to align this box differently</translate> || <translate><!--T:34--> left, right or center</translate> ||<translate><!--T:35--> Optional</translate> || <translate><!--T:36--> right</translate> | | ''align'' || <translate><!--T:33--> Override to align this box differently</translate> || <translate><!--T:34--> left, right or center</translate> ||<translate><!--T:35--> Optional</translate> || <translate><!--T:36--> right</translate> | ||
Line 42: | Line 47: | ||
| ''type'' || <translate><!--T:37--> The entity's type<br>(can be a link to another wiki page)</translate> || <translate><!--T:38--> Wikitext</translate> ||<translate><!--T:39--> Optional</translate> || <translate><!--T:40--> Humanoid</translate> | | ''type'' || <translate><!--T:37--> The entity's type<br>(can be a link to another wiki page)</translate> || <translate><!--T:38--> Wikitext</translate> ||<translate><!--T:39--> Optional</translate> || <translate><!--T:40--> Humanoid</translate> | ||
|- | |- | ||
| ''behavior'' || <translate><!--T:41--> The entity's behavior towards players<br>(can be a link to another wiki page)</translate> || <translate><!--T:42--> Wikitext</translate> || <translate><!--T:43--> Optional</translate> || | | ''behavior'' || <translate><!--T:41--> The entity's behavior towards players<br>(can be a link to another wiki page)</translate> || <translate><!--T:42--> Wikitext</translate> || <translate><!--T:43--> Optional</translate> || Hostile | ||
|- | |- | ||
| '' | | ''domesticable'' || <translate> Whether the entity can be made tame through breeding successive generations.</translate> || <translate> Yes or No</translate> || <translate> Optional</translate> || No | ||
|- | |- | ||
| '' | | ''health'' || <translate><!--T:44--> The entity's life points</translate> || <translate><!--T:59--> Number</translate> || <translate><!--T:45--> Optional</translate> || 12 | ||
|- | |- | ||
| '' | | ''maxSpeed'' || <translate><!--T:91--> The entity's maximum speed (generally when they flee)</translate> || <translate><!--T:92--> Number</translate> || <translate> <!--T:93--> Optional</translate> || 0.06 | ||
|- | |- | ||
| '' | | ''attack'' || <translate><!--T:60--> The entity's attack power (-HP per hit)</translate> || <translate><!--T:61--> Number</translate> || <translate><!--T:46--> Optional</translate> || 2.5 | ||
|- | |- | ||
| '' | | ''tier'' || <translate><!--T:62--> The tier of the entity's damage to the player</translate> || <translate><!--T:63--> Number</translate> || <translate><!--T:47--> Required if ''attack'' is defined</translate> || 0 | ||
|- | |- | ||
| '' | | ''light'' || <translate><!--T:64--> The max light level required for the entity to spawn</translate> || <translate><!--T:65--> Number</translate> || <translate><!--T:48--> Optional</translate> || 7 | ||
|- | |- | ||
| '' | | ''blocks'' || <translate><!--T:66--> The type of blocks where the entity will spawn on</translate> || <translate><!--T:67--> String</translate> || <translate><!--T:49--> Optional</translate> || <translate><!--T:68--> Air, Tall grass</translate> | ||
|- | |- | ||
| '' | | ''groupsize'' || <translate><!--T:69--> How many entities are spawned at the same time</translate> || <translate><!--T:70--> String</translate> || <translate><!--T:50--> Optional</translate> || 1 ± 3 | ||
|- | |||
| ''rain'' || <translate><!--T:71--> How much rain is needed for the entity to spawn in this region</translate> || <translate><!--T:72--> String</translate> || <translate> <!--T:73--> Optional</translate> || 0.4 <translate><!--T:74--> min</translate> | |||
|- | |||
| ''temp'' || <translate><!--T:75--> The range of temperatures needed for the entity to spawn in this region</translate> || <translate><!--T:76--> String</translate> || <translate> <!--T:77--> Optional</translate> || -15 <translate><!--T:78--> to</translate> 15 | |||
|- | |||
| ''forest'' || <translate><!--T:79--> The density of trees necessary for the creature to spawn in this region</translate> || <translate><!--T:80--> String</translate> || <translate> <!--T:81--> Optional</translate> || 0.5 <translate><!--T:88--> to</translate> 1 | |||
|- | |||
| ''shrub'' || <translate><!--T:82--> The density of bushes necessary for the creature to spawn in this region</translate> || <translate><!--T:83--> String</translate> || <translate> <!--T:84--> Optional</translate> || 0.5 <translate><!--T:89--> to</translate> 1 | |||
|- | |||
| ''ylevel'' || <translate><!--T:85--> The range of elevation where the entity can spawn (0=the mantle, 1=the surface)</translate> || <translate><!--T:86--> String</translate> || <translate><!--T:51--> Optional</translate> || 0.85 <translate><!--T:52--> to</translate> 2 | |||
|- | |||
| ''drops'' || <translate><!--T:87--> List of items dropped by the dead entity when it is harvested</translate> || <translate><!--T:90--> Code</translate> || <translate><!--T:53--> Optional</translate> || <translate><!--T:54--> See</translate> [[Template:IRow]] | |||
|} | |} | ||
[[Category:Infoboxes]] | [[Category:Infoboxes]] |
Latest revision as of 04:10, 21 January 2024
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 |
domesticable | Whether the entity can be made tame through breeding successive generations. | Yes or No | Optional | No |
health | The entity's life points | Number | Optional | 12 |
maxSpeed | The entity's maximum speed (generally when they flee) | Number | Optional | 0.06 |
attack | The entity's attack power (-HP per hit) | Number | Optional | 2.5 |
tier | The tier of the entity's damage to the player | 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 region | 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 elevation where the entity can spawn (0=the mantle, 1=the surface) | String | Optional | 0.85 to 2 |
drops | List of items dropped by the dead entity when it is harvested | Code | Optional | See Template:IRow |