I have made a custom Minecraft block called “poor_dirt”. Can i target this block in the Makecode editor in the block selection.
For example so i can say
if (blocks.testForBlock(POOR_DIRT, player.position())) {
player.say(":)")
}
I don’t quite understand what you mean by “target this block”? It seems to be going beyond just using/referencing your custom block in a MakeCode program?
You should be able to reference that block using blocks.blockByName("poor_dirt"). You could also use an extension and add a new reporter block that calls that method.
Try including the identifier, like myaddon:poor_dirt. It should be the same as when you give yourself the block with /give. I’m not sure if it will work, but it’s worth a try.