on place:
if tool of player is hay bale named "&8HAY GEN" with lore "&7The first step.":
add location of event-block to {GLOCATION %player's uuid%::%event-block%}
message "&7Succesfully placed &8HAY GEN"
on leftclick:
if event-block is hay bale
if {GLOCATION %player's uuid%::%event-block%} contains location of event-block:
set block to air
message "Broke Hay Gen"
else:
cancel event
message "NOT YOUR GEN"
for some reason it keeps saying not your gen even though i placed it
edit:
I made a command that tells me what is added to my gens, and the location isn't even added, fix please