HyperScript
Docs

← All of the Docs HyperLog

Who placed it, who broke it HyperLog

expressionwho placed block at <location>HyperLog

The name of whoever last placed a block there; unset if nobody is on record. Not the same as who last changed block at, which may be whoever broke it

set {_placed} to who placed block at event's location
expressionwho broke block at <location>HyperLog

The name of whoever last broke a block there

set {_broke} to who broke block at event's location
Guide and examples
on right click with stick:
    if event.block is not set:
        stop
    set {_placed} to who placed block at event's location
    set {_broke} to who broke block at event's location
    if {_placed} is set:
        send "&7Placed by &f%{_placed}%"
    if {_broke} is set:
        send "&7Last broken by &f%{_broke}%"
    if {_placed} is not set and {_broke} is not set:
        send "&7Nobody is on record for this block."
SyntaxEffect
who placed block at <location>The name of whoever last placed a block there; unset if nobody is on record. Not the same as who last changed block at, which may be whoever broke it
who broke block at <location>The name of whoever last broke a block there