custom_blocks_handler_events: type: world debug: false events: on player places sponge: - if : - determine passively cancelled - wait 1t - spawn armor_stand[custom_name=customBlock_;equipment=air|air|air|;gravity=false;visible=false] - modifyblock cracked_stone_bricks - adjust spawner_type: on player breaks cracked_stone_bricks: - define customBlockStands: - if <[customBlockStands].size||0> >= 1: - determine passively <[customBlockStands].get[1].as_entity.equipment.head.script.yaml_key[custom_block_drop].as_item||<[customBlockStands].get[1].as_entity.custom_name.after[_].as_item>> - wait 1t - remove <[customBlockStands].get[1]>