Template:BlockInfoBox: Difference between revisions
No edit summary |
No edit summary |
||
Line 48: | Line 48: | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food Type</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{nutritionalValue|0}}}</td></tr>}} {{#if:{{{emittedLightAmount|}}}| | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food Type</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{nutritionalValue|0}}}</td></tr>}} {{#if:{{{emittedLightAmount|}}}| | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Emitted Light Amount</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{emittedLightAmount|0}}</td></tr>}} | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Emitted Light Amount</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{emittedLightAmount|0}}</td></tr>}} | ||
<tr><th colspan="2" class="game-infobox-header"> | <tr><th colspan="2" class="game-infobox-header">Physics:</th></tr> | ||
{{#if:{{{lightAttenuation|}}}| | {{#if:{{{lightAttenuation|}}}| | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Light Attenuation</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{lightAttenuation|0}}}</td></tr>}} {{#if:{{{explosivePower|}}}| | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Light Attenuation</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{lightAttenuation|0}}}</td></tr>}} {{#if:{{{explosivePower|}}}| | ||
Line 58: | Line 58: | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{isFluidBlocker|}}} | {{#switch: {{{isFluidBlocker|}}} | ||
| #default = [[File: | | #default = [[File:Cancel.webp|22x22px]] | ||
| yes = [[File: | | yes = [[File:Check.webp|22x22px]] | ||
| Yes = [[File: | | Yes = [[File:Check.webp|22x22px]] | ||
| no = [[File: | | no = [[File:Cancel.webp|22x22px]] | ||
| No = [[File: | | No = [[File:Cancel.webp|22x22px]]}}</td></tr> | ||
{{#if:{{{projectileStickProbability|}}}| | {{#if:{{{projectileStickProbability|}}}| | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Projectile Stick Probability</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{projectileStickProbability|0}}}</td></tr>}} | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Projectile Stick Probability</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{projectileStickProbability|0}}}</td></tr>}} |
Revision as of 15:04, 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 | id | Block identification number.
| Number | required |
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 |