手册:Minecraft:spawns on surface

来自Minecraft基岩版开发Wiki

应填在"conditions"下方

{
    "conditions": [
        {
            "minecraft:spawns_on_surface": {}
        } 
    ]
}