Merge branch 'main' into item-models

This commit is contained in:
MihailRis
2024-10-28 10:18:04 +03:00
12 changed files with 141 additions and 8 deletions
+14
View File
@@ -187,3 +187,17 @@ console.add_command(
" has been saved as "..file.resolve(filename))
end
)
console.add_command(
"fragment.place file:str x:num~pos.x y:num~pos.y z:num~pos.z rotation:int=0",
"Place fragment to the world",
function(args, kwargs)
local filename = args[1]
local x = args[2]
local y = args[3]
local z = args[4]
local rotation = args[5]
local fragment = generation.load_fragment(filename)
fragment:place({x, y, z}, rotation)
end
)