I tried to do it with skbee addon but it didnt work
here is my code:
permission: op
trigger:
set {_s} to structure named "holemap" # loads a structure that is already saved, or creates a new one if not found
wait 3 seconds
fill structure {_s} between location(5173, 108, 5192) and location(4825, -62, 4844) # fills the structure object with blocks from the world
wait 3 seconds
save structure {_s} # saves it to file
command /load_map:
permission: op
trigger:
set {_s} to structure named "holemap"
command /reset_map: # resets the map
permission: op
trigger:
place structure {_s} at location of target block # places the structure in the world```