"when block loaded" trigger

Status
Resolved
Issue description

I want a procedure trigger when block loaded,provided dependencies:

x y z world

so I can do such a thing like

when block loaded(dependencies:x y z world):
if <block at (x) (y) (z)> is <block DIRT>:
    replace block at (x) (y) (z) to <custom block NEW DIRT> keep inventory FALSE keep nbt FALSE

 

Issue comments

I cant use When block added as LOAD,but PLACE.

Second:Not able to set triggers for vanilla block&items

Yes, this would do the trick, but it will not be loaded instantly as random tick is, well, random