minecraft:redstone_consumer for you with a switch.Get GodCraftOverview
minecraft:redstone_consumer is a block component: it goes in the components object of a custom block. Lets the block receive redstone power so scripts can react when the signal changes. Use it for custom lamps, doors and machines.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
min_power | integer | 0 | Smallest signal strength that makes the block tell scripts about it. 0 reports every change.Range: 0 to 15 |
propagates_power | boolean | false | When true, power can pass through this block to the other side. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:redstone_consumer": {
"min_power": 0,
"propagates_power": false
}
}