Difference between revisions of "Template:InfoBox block"
Template page
Views
Actions
Namespaces
Variants
Tools
m |
|||
Line 39: | Line 39: | ||
<th>Created by</th> | <th>Created by</th> | ||
<td>{{{author}}}</td> | <td>{{{author}}}</td> | ||
</tr>}} | |||
</table> | |||
{{#if:{{{technical_category|}}}|<div class="infobox-category">{{{technical_category}}}</div>}} | |||
<table> | |||
{{#if:{{{class|}}}|<tr> | |||
<th>Class Name</th> | |||
<td>v{{{class}}}</td> | |||
</tr>}} | |||
{{#if:{{{extends|}}}|<tr> | |||
<th>Extends</th> | |||
<td>v{{{extends}}}</td> | |||
</tr>}} | |||
{{#if:{{{implements|}}}|<tr> | |||
<th>Implement</th> | |||
<td>{{{implements}}}</td> | |||
</tr>}} | </tr>}} | ||
</table> | </table> | ||
Line 130: | Line 145: | ||
"label": "Author", | "label": "Author", | ||
"description": "The original creator of the block", | "description": "The original creator of the block", | ||
"type": "string" | |||
}, | |||
"class_name": { | |||
"label": "Class Name", | |||
"description": "The internal class name", | |||
"type": "string" | |||
}, | |||
"extends": { | |||
"label": "Extends", | |||
"description": "The class name that this block extends from", | |||
"type": "string" | |||
}, | |||
"implements": { | |||
"label": "Implement", | |||
"description": "The class name that this block implements", | |||
"type": "string" | "type": "string" | ||
} | } |
Revision as of 02:28, 18 August 2022
Block Name
Insert block images
General Information
Block ID | jsblock:water_machine_1 |
---|---|
Type | Multipart |
Transparent | Yes |
Hardness | 2.0 |
Light Level | 15 |
Other Information
Added in | v1.0.0 |
---|---|
Created by | LX86 |
Infobox template for a JCM block
Parameter | Description | Type | Status | |
---|---|---|---|---|
Block Name | title | Name of the block | String | optional |
Image | image | Image name | String | optional |
Image description | image_desc | Image description | String | optional |
General Category | general_category | General Category | String | optional |
Block ID | id | The block ID of the block | String | required |
Item Group | item_group | Item Group in creative menu | String | optional |
Type of the block | type | Block/Directional Block/Multipart
| String | optional |
Transparent | transparent | Whether Light passes through this block (Yes/No) | String | optional |
Hardness | hardness | Hardness/Strength of a block | Number | optional |
Light Level | light_level | Light level of the block | Number | optional |
Other Category | other_category | Other Category | String | optional |
Version | since | JCM Version that this block is added | Number | required |
Author | author | The original creator of the block | String | optional |
Class Name | class_name | The internal class name | String | optional |
Extends | extends | The class name that this block extends from | String | optional |
Implement | implements | The class name that this block implements | String | optional |