mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-11 08:23:19 +01:00
Position statements for command returns
This commit is contained in:
parent
f4b3b09b26
commit
e811090527
@ -26,7 +26,7 @@ worldeditadditions_core.register_command("scentre", {
|
||||
|
||||
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,
|
||||
})
|
||||
|
||||
|
@ -34,7 +34,7 @@ worldeditadditions_core.register_command("sgrow", {
|
||||
pos1, pos2 = pos1:add(min), pos2:add(max)
|
||||
|
||||
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,
|
||||
})
|
||||
|
||||
|
@ -126,6 +126,6 @@ worldeditadditions_core.register_command("smake", {
|
||||
for k,_ in pairs(targ) do delta[k] = eval(delta[k]) end
|
||||
|
||||
wea_c.pos.set(name, 2, pos1 + delta)
|
||||
return true, "Pos2 set to "..pos2
|
||||
return true, "Position 2 to "..pos2
|
||||
end
|
||||
})
|
||||
|
@ -29,7 +29,7 @@ worldeditadditions_core.register_command("srel", {
|
||||
local pos2 = pos1:add(vec)
|
||||
|
||||
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,
|
||||
})
|
||||
|
||||
|
@ -26,7 +26,7 @@ worldeditadditions_core.register_command("sshift", {
|
||||
local pos2 = vec:add(wea_c.pos.get(name, 2))
|
||||
|
||||
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,
|
||||
})
|
||||
|
||||
|
@ -34,7 +34,7 @@ worldeditadditions_core.register_command("sshrink", {
|
||||
pos1, pos2 = pos1:add(max), pos2:add(min)
|
||||
|
||||
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,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user