forked from VoxeLibre/VoxeLibre
Test entity
This commit is contained in:
parent
2c59a34dbc
commit
922f6c5000
|
@ -36,3 +36,22 @@ function mod.create_node_entity(pos, nodename)
|
|||
return minetest.add_entity(pos, "vl_node_entity:cube_node",minetest.serialize(staticdata))
|
||||
end
|
||||
|
||||
minetest.register_chatcommand("test-entity-node",{
|
||||
func = function(name,param)
|
||||
local center = mod.create_node_entity(vector.new(126,4,68),"mcl_core:dirt")
|
||||
|
||||
--[[
|
||||
local a = mod.create_node_entity(vector.zero(),"mcl_core:dirt_with_grass")
|
||||
a:set_attach(center, "", vector.new( 10,0, 0))
|
||||
|
||||
local a = mod.create_node_entity(vector.zero(),"mcl_core:dirt_with_grass")
|
||||
a:set_attach(center, "", vector.new(-10,0, 0))
|
||||
|
||||
local a = mod.create_node_entity(vector.zero(),"mcl_core:dirt_with_grass")
|
||||
a:set_attach(center, "", vector.new( 0,0, 10))
|
||||
|
||||
local a = mod.create_node_entity(vector.zero(),"mcl_core:dirt_with_grass")
|
||||
a:set_attach(center, "", vector.new( 0,0,-10))
|
||||
]]
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue