forked from mtcontrib/Minetest-WorldEdit
allow multiple //moves
This commit is contained in:
parent
a429e104a2
commit
17c1e3887c
6
init.lua
6
init.lua
@ -323,6 +323,12 @@ minetest.register_chatcommand("/move", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local count = worldedit.move(pos1, pos2, axis, tonumber(amount))
|
local count = worldedit.move(pos1, pos2, axis, tonumber(amount))
|
||||||
|
|
||||||
|
worldedit.pos1[name][axis] = worldedit.pos1[name][axis] + amount
|
||||||
|
worldedit.pos2[name][axis] = worldedit.pos2[name][axis] + amount
|
||||||
|
worldedit.mark_pos1(name)
|
||||||
|
worldedit.mark_pos2(name)
|
||||||
|
|
||||||
minetest.chat_send_player(name, count .. " nodes moved")
|
minetest.chat_send_player(name, count .. " nodes moved")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user