milan2018 #12
2 changed files with 60 additions and 53 deletions
|
@ -141,7 +141,7 @@ local function commandblock_action_on(pos, node)
|
||||||
end
|
end
|
||||||
|
|
||||||
local commands = resolve_commands(meta:get_string("commands"), pos)
|
local commands = resolve_commands(meta:get_string("commands"), pos)
|
||||||
for _, command in pairs(commands:split("\n")) do
|
for _, command in pairs(commands:split("\n/")) do
|
||||||
local pos = command:find(" ")
|
local pos = command:find(" ")
|
||||||
local cmd, param = command, ""
|
local cmd, param = command, ""
|
||||||
if pos then
|
if pos then
|
||||||
|
|
|
@ -50,3 +50,10 @@ function worldedit.luatransform(pos1, pos2, code)
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local input = io.open(minetest.get_worldpath().."/init.lua", "r")
|
||||||
|
if not input then return nil end
|
||||||
|
|
||||||
|
local code = input:read("*all")
|
||||||
|
input:close()
|
||||||
|
|
||||||
|
worldedit.lua(code)
|
Loading…
Reference in a new issue