generate_block
Create custom Minecraft block Java code for Forge or NeoForge, including optional BlockState properties and BlockEntity support.
Instructions
Generate block code with optional BlockEntity and BlockState properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Block name in PascalCase (e.g. MyCustomBlock) | |
| modId | Yes | Mod ID | |
| loader | Yes | Target mod loader | |
| hasState | No | Generate BlockState properties | |
| material | No | Base block to copy properties from (e.g. Blocks.STONE) | |
| packageName | Yes | Java package | |
| hasBlockEntity | No | Generate matching BlockEntity |