1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-10-15 08:35:35 +02:00

Use initial_properties (#6)

* Use initial_properties

* Add more copyright information

* It's LGPL not GPL
This commit is contained in:
Niklp
2023-09-30 22:42:41 +02:00
committed by GitHub
parent d7d55fbb79
commit e25588cf91
23 changed files with 28 additions and 1406 deletions

View File

@@ -269,9 +269,11 @@ end
function display_api.register_display_entity(entity_name)
if not minetest.registered_entities[entity_name] then
minetest.register_entity(':'..entity_name, {
collisionbox = { 0, 0, 0, 0, 0, 0 },
visual = "upright_sprite",
textures = {},
initial_properties = {
collisionbox = {0, 0, 0, 0, 0, 0},
visual = "upright_sprite",
textures = {}
},
on_activate = display_api.on_activate,
get_staticdata = function(self)
return minetest.serialize({ nodepos = self.nodepos })