Jump to content

Template:BlockInfoBox

From Survivalcraft Wiki
Revision as of 13:46, 1 August 2025 by JSym (talk | contribs)

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Block/Item Titletitle

Name of the block/item.

Example
"Stone Brick" or "Iron Machete"
Stringrequired
Block/Item Modelmodel

Source for block/item model or image. Templates are recommended but static files can be passed as well.

Example
{{#widget:ModelViewer|parameters}} or [[File:filename.extension|imageSize]]
Templaterequired
Block IDblockID

Block identification number.

Default
0
Numbersuggested
StackableisStackable

Whether the item/block is stackable within inventory slots or not.

Default
Yes
Booleansuggested
Max Stack SizemaxStackSize

Maximum stack size allowed for the block/item.

Default
0
Numbersuggested
FlammableisFlammable

Whether the block can catch fire within the world or not.

Default
No
Example
Yes or no.
Booleanoptional
EdibleisEdible

Whether the block/item is edible or not.

Default
No
Example
Yes or no.
Booleanoptional
Sleep SuitabilityisSleepable

Whether the block provides an adequate sleeping surface or not.

Default
No
Example
Yes or no.
Booleanoptional
Fuel ValuefuelValue

How long the item will provide fuel when used within the furnace block.

Default
0
Numberoptional
Fire DurationfireDuration

How long the item will burn when lit on fire within the world.

Default
0
Numberoptional
Food TypefoodType

Type of food the item is classified as.

Example
Bread, meat, vegetation, or other.
Stringoptional
Nutritional ValuenutritionalValue

How many food points/bars the item provides upon consumption.

Default
0
Numberoptional
Emitted Light AmountemittedLightAmount

How much light the block emits, derived from its center.

Default
0
Numberoptional
Light AttenuationlightAttenuation

How much the block attenuates light that passes through it.

Default
0
Numberoptional
Explosive PowerexplosivePower

Explosion power provided by block when ignited.

Default
0
Numberoptional
Explosion ResilienceexplosionResilience

Resilience of the block to be destroyed by explosives.

Default
0
Numberoptional
Projectile ResilienceprojectileResilience

Resilience of block when struck by projectiles.

Default
0
Numberoptional
Densitydensity

Used to determine buoyance of a block/item. Pickables with a density less than 1 will float, greater than 1 will sink.

Default
0
Numberoptional
Fluid BlockerisFluidBlocker

Whether or not the block obstructs the flow of water.

Default
No
Example
Yes or no.
Booleanoptional
Projectile Stick ProbabilityprojectileStickProbability

Defines the probability for a spear or arrow to stick in the block when thrown.

Default
0
Example
Decimal value between 0 and 1.
Numberoptional
Digging MethoddiggingMethod

Intended digging method of the block.

Default
Axe
Example
Axe, pickaxe, or shovel.
Stringoptional
Digging ResiliencediggingResilience

Resilience or the time it takes for the block to be broken.

Default
0
Numberoptional
Required Tool LevelrequiredToolLevel

Minimal tool level/tier needed to break and acquire the block.

Default
0
Numberoptional
Experience GivenexperienceGiven

Amount of experience gained when mined or collected.

Default
0
Numberoptional
Tool Durability ImpacttoolDurabilityImpact

Degree of impact block has on tool durability when mined.

Default
0
Numberoptional