Code:
on block break:
if event-block is ancient debris:
enchantment level of fortune of event-player's tool is 35:
drop 4 of event-block at player
set {_amount} to amount of ancient debris in player's inventory
set {_amount} to {_amount}/4
set {_amount} to round {_amount}
remove {_amount}*4 of ancient debris from player
give {_amount} of netherite block to player