-- In this case, we aren't interested in keeping the multidirectional shape changing information insomuch as an offset to which we should shift the region's contents to.
localoffset=vpos1+vpos2
ifoffset==Vector3.new()then
returnfalse,"Refusing to move region a distance of 0 nodes"
end
returntrue,offset:floor()
end
-- ███ ███ ██████ ██ ██ ███████
-- ████ ████ ██ ██ ██ ██ ██
-- ██ ████ ██ ██ ██ ██ ██ █████
-- ██ ██ ██ ██ ██ ██ ██ ██
-- ██ ██ ██████ ████ ███████
worldedit.register_command("move+",{-- TODO: Make this an override
minetest.log("action",name.." used //move+ from "..source_pos1.." - "..source_pos2.." to "..target_pos1.." - "..target_pos2..", modifying "..nodes_modified.." nodes in "..wea.format.human_time(time_taken))
returntrue,nodes_modified.." nodes moved using offset "..copy_offset.." in "..wea.format.human_time(time_taken)