minecraft:redstone_producer for you with a switch.Get GodCraftOverview
minecraft:redstone_producer is a block component: it goes in the components object of a custom block. Makes the block give off a redstone signal, like a redstone block or a lever that is on.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
power | integer | none | Signal strength from 0 (off) to 15 (strongest).Range: 0 to 15 |
strongly_powered_face | Facing | none | The side whose touching block gets strongly powered, so it can power its own neighbors too. |
connected_faces | Facing[] | ["down","up","north","south","west","east"] | The sides that give off power. Leave it out to power all sides. |
transform_relative | boolean | true | When true, the faces turn along with the block's minecraft:transformation rotation. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:redstone_producer": {
"power": 0,
"strongly_powered_face": {},
"connected_faces": [
"down",
"up",
"north",
"south",
"west",
"east"
],
"transform_relative": true
}
}