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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"modId": "<modId>",
"packageName": "<packageName>",
"loader": "<loader>"
},
"name": "generate_block"
}
}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 |