mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-01 05:43:01 +00:00
Position statements for command returns
This commit is contained in:
parent
f4b3b09b26
commit
e811090527
6 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ worldeditadditions_core.register_command("scentre", {
|
||||||
|
|
||||||
wea_c.pos.set_all(name, {pos1, pos2})
|
wea_c.pos.set_all(name, {pos1, pos2})
|
||||||
|
|
||||||
return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2
|
return true, "Position 1 to "..pos1..", Position 2 to "..pos2
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ worldeditadditions_core.register_command("sgrow", {
|
||||||
pos1, pos2 = pos1:add(min), pos2:add(max)
|
pos1, pos2 = pos1:add(min), pos2:add(max)
|
||||||
|
|
||||||
wea_c.pos.set_all(name, {pos1, pos2})
|
wea_c.pos.set_all(name, {pos1, pos2})
|
||||||
return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2
|
return true, "Position 1 to "..pos1..", Position 2 to "..pos2
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,6 @@ worldeditadditions_core.register_command("smake", {
|
||||||
for k,_ in pairs(targ) do delta[k] = eval(delta[k]) end
|
for k,_ in pairs(targ) do delta[k] = eval(delta[k]) end
|
||||||
|
|
||||||
wea_c.pos.set(name, 2, pos1 + delta)
|
wea_c.pos.set(name, 2, pos1 + delta)
|
||||||
return true, "Pos2 set to "..pos2
|
return true, "Position 2 to "..pos2
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
|
@ -29,7 +29,7 @@ worldeditadditions_core.register_command("srel", {
|
||||||
local pos2 = pos1:add(vec)
|
local pos2 = pos1:add(vec)
|
||||||
|
|
||||||
wea_c.pos.set_all(name, {pos1, pos2})
|
wea_c.pos.set_all(name, {pos1, pos2})
|
||||||
return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2
|
return true, "Position 1 to "..pos1..", Position 2 to "..pos2
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ worldeditadditions_core.register_command("sshift", {
|
||||||
local pos2 = vec:add(wea_c.pos.get(name, 2))
|
local pos2 = vec:add(wea_c.pos.get(name, 2))
|
||||||
|
|
||||||
wea_c.pos.set_all(name, {pos1, pos2})
|
wea_c.pos.set_all(name, {pos1, pos2})
|
||||||
return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2
|
return true, "Position 1 to "..pos1..", Position 2 to "..pos2
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ worldeditadditions_core.register_command("sshrink", {
|
||||||
pos1, pos2 = pos1:add(max), pos2:add(min)
|
pos1, pos2 = pos1:add(max), pos2:add(min)
|
||||||
|
|
||||||
wea_c.pos.set_all(name, {pos1, pos2})
|
wea_c.pos.set_all(name, {pos1, pos2})
|
||||||
return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2
|
return true, "Position 1 to "..pos1..", Position 2 to "..pos2
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue