mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add fragment:place & add 'fragment.place' command
This commit is contained in:
parent
d8c3940451
commit
7819a5cd68
5 changed files with 58 additions and 0 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue