Cancel the event
Stop what the player did from happening: the block stays, the chat line isn't sent, the hit does no harm.
A Minecraft element (a step) in Logic. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player places a block → If Block type is minecraft:tnt → Cancel the event.
Also called
cancel, stop, deny, block it, prevent, undo
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.