The minecraft:redstone_producer block component allows for defining a strongly powered face to allow custom blocks to behave like Vanilla redstone repeaters, comparators, torches, etc. Unfortunately, the property for enacting such, strongly_powered_face, is required and must be set to one of the 6 adjacency directions.
This is likely a mistake due to 2 main reasons:
Creators are limited in the kinds of redstone producing blocks they can make. Creators may not want their custom blocks to emit strongly powered signals in any direction.
Documentation from Mojang does not indicate that the property should be required.
Regarding documentation, the Microsoft Learn page on the corresponding scripting API indicates the value should not be required and even has a binding to handle that case:
If the 'minecraft:redstone_producer' block component hasn't defined a 'strongly_powered_face' then this method returns 'undefined'.
Additionally, the component’s internal form in the Creator Docs repository does not tag the property as being required.
{
"id": "strongly_powered_face",
"title": "Facing",
"description": "The block touching this face will become strongly powered with the signal level strength of \"power\".\nStrongly powered blocks will power adjacent blocks.\nBy default, the block will not strongly power any face.",
"dataType": 2,
"choices": [
{
"id": "down",
"title": "Down"
},
{
"id": "east",
"title": "East"
},
{
"id": "north",
"title": "North"
},
{
"id": "south",
"title": "South"
},
{
"id": "up",
"title": "Up"
},
{
"id": "west",
"title": "West"
}
]
}Demonstration
Below is a custom redstone-producing block that doesn’t define a strongly powered face in its definition. The custom block is hidden from view, surrounded by conductive blocks on all sides. Those conductive blocks are, independently of one another, attached to consumer blocks.
Note that none of the consumer blocks are activated. This is the expected behavior. However, loading into a world with such a custom block results in the following content log error being emitted:
Reproduction
This likely bug can be reproduced via the following:
{
"format_version": "1.26.0",
"minecraft:block": {
"description": {"identifier": "bug_redstone:custom_block_with_no_defined_strongly_powered_face"},
"components": {
"minecraft:geometry": "minecraft:geometry.full_block",
"minecraft:material_instances": {
"*": {"texture": "redstone_block"}
},
"minecraft:redstone_producer": {"power": 15}
}
}
}This example is taken from the behavior pack in the following world attached for convenience:
This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.
The content log warning is just a warning to advise the content creator that the block they defined as a redstone producer cannot actually produce any redstone power because it is not sufficiently defined. The warning doesn’t prevent loading the pack, does it?
What at do you expect to happen when you define a block as a redstone producer with no powered faces? Should the pack fail to load? Should the the pack load silently with a non-functional block?