Template:BlockInfoBox: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
<tr><td colspan="2">{{{model|}}}</td></tr> | <tr><td colspan="2">{{{model|}}}</td></tr> | ||
<tr><th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | <tr><th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Block ID</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument">{{{blockID|0}}}</td></tr> | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Stackable</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Stackable</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
Line 237: | Line 239: | ||
"type": "wiki-template-name", | "type": "wiki-template-name", | ||
"required": true | "required": true | ||
}, | |||
"blockID": { | |||
"label": "Block ID", | |||
"description": "Block identification number.", | |||
"type": "number", | |||
"default": "0", | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
Line 243: | Line 252: | ||
"title", | "title", | ||
"model", | "model", | ||
"blockID", | |||
"isStackable", | "isStackable", | ||
"maxStackSize", | "maxStackSize", |
Revision as of 13:46, 1 August 2025
Embeds a customized infobox for displaying block/item attributes along the left side of a wiki page. Can be used in conjunction with the Widget:ModelViewer for displaying block/item models.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Block/Item Title | title | Name of the block/item.
| String | required |
Block/Item Model | model | Source for block/item model or image. Templates are recommended but static files can be passed as well.
| Template | required |
Block ID | blockID | Block identification number.
| Number | suggested |
Stackable | isStackable | Whether the item/block is stackable within inventory slots or not.
| Boolean | suggested |
Max Stack Size | maxStackSize | Maximum stack size allowed for the block/item.
| Number | suggested |
Flammable | isFlammable | Whether the block can catch fire within the world or not.
| Boolean | optional |
Edible | isEdible | Whether the block/item is edible or not.
| Boolean | optional |
Sleep Suitability | isSleepable | Whether the block provides an adequate sleeping surface or not.
| Boolean | optional |
Fuel Value | fuelValue | How long the item will provide fuel when used within the furnace block.
| Number | optional |
Fire Duration | fireDuration | How long the item will burn when lit on fire within the world.
| Number | optional |
Food Type | foodType | Type of food the item is classified as.
| String | optional |
Nutritional Value | nutritionalValue | How many food points/bars the item provides upon consumption.
| Number | optional |
Emitted Light Amount | emittedLightAmount | How much light the block emits, derived from its center.
| Number | optional |
Light Attenuation | lightAttenuation | How much the block attenuates light that passes through it.
| Number | optional |
Explosive Power | explosivePower | Explosion power provided by block when ignited.
| Number | optional |
Explosion Resilience | explosionResilience | Resilience of the block to be destroyed by explosives.
| Number | optional |
Projectile Resilience | projectileResilience | Resilience of block when struck by projectiles.
| Number | optional |
Density | density | Used to determine buoyance of a block/item. Pickables with a density less than 1 will float, greater than 1 will sink.
| Number | optional |
Fluid Blocker | isFluidBlocker | Whether or not the block obstructs the flow of water.
| Boolean | optional |
Projectile Stick Probability | projectileStickProbability | Defines the probability for a spear or arrow to stick in the block when thrown.
| Number | optional |
Digging Method | diggingMethod | Intended digging method of the block.
| String | optional |
Digging Resilience | diggingResilience | Resilience or the time it takes for the block to be broken.
| Number | optional |
Required Tool Level | requiredToolLevel | Minimal tool level/tier needed to break and acquire the block.
| Number | optional |
Experience Given | experienceGiven | Amount of experience gained when mined or collected.
| Number | optional |
Tool Durability Impact | toolDurabilityImpact | Degree of impact block has on tool durability when mined.
| Number | optional |