Test entity

This commit is contained in:
teknomunk 2024-05-05 15:56:55 +00:00
parent 2c59a34dbc
commit 922f6c5000
1 changed files with 19 additions and 0 deletions

View File

@ -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
})