I want a placed block to be replaced with a command block but this code doesn't work and gives no errors:
Can you tell me how to do it right?
Code:
on place of reinforced deepslate:
if name of event-block is "&5&lShop Creation":
cancel event
set block at event-location to command block