may_replace in an ore feature takes an array of block specifiers (descriptors) to determine what the associate block to place is allowed to replace. Unfortunately, these specifiers totally drop any declared states, only filtering by identifier instead, making ore features vastly less useful than other replace-supporting feature types.
Demonstration
The attached screenshot demonstrates this issue. An endless plane of east-facing furnaces is placed before any ore features are attempted. The ore feature in question has the following definition:
{
"format_version": "1.26.50",
"minecraft:ore_feature": {
"description": {"identifier": "bug_features:ore_feature"},
"replace_rules": [
{
"places_block": "minecraft:smooth_stone",
"may_replace": [
{
"name": "minecraft:furnace",
"states": {"minecraft:cardinal_direction": "south"}
}
]
}
],
"count": 32
}
}Notice that furnaces to be replaced declare "states": {"minecraft:cardinal_direction": "south”}: only south-facing furnaces should be able to be replaced. Unfortunately, this is not the case.
Reproduction
The demo screenshot and code are taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.
Thank you for helping us improve Minecraft! We saved your files: