[UPDATE] Update something

This commit is contained in:
tacigar 2016-09-14 12:33:23 +09:00
parent 5e9cda5ce7
commit 139f8f00d1
2 changed files with 23 additions and 1 deletions

View File

@ -37,9 +37,29 @@
node_box = node_box,
tiles = tiles,
})
end) ()
end) ();
-- register a definition of a core entity.
(function()
minetest.register_node("maidroid_tool:core_node", {
tiles = {"maidroid_core_empty.png"},
})
minetest.register_entity("maidroid_tool:core_entity", {
physical = false,
visual = "wielditem",
visual_size = {x = 0.5, y = 0.5},
nodename = "maidroid_tool:core_node",
on_activate = function(self, staticdata)
self.object:set_properties{textures = {"maidroid_tool:core_node"}}
end,
})
minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
minetest.add_entity(pointed_thing.above, "maidroid_tool:core_entity")
end)
end) ()

View File

@ -1 +1,3 @@
default
maidroid
maidroid_core