diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-17 00:56:54 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-17 00:56:54 -0700 |
commit | 960d4e4155c3156c029c5be14c0ac4dbf1e08b45 (patch) | |
tree | 10302799ef6f8d83f8977ec69edc0c24c37410b0 /entities.lua | |
parent | 9ddec013de650dbfc87c6c960a1e27df820f2977 (diff) |
Add visual markers for crated Digtron image
Diffstat (limited to 'entities.lua')
-rw-r--r-- | entities.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/entities.lua b/entities.lua index ae997af..fa109b7 100644 --- a/entities.lua +++ b/entities.lua @@ -50,6 +50,32 @@ minetest.register_entity("digtron:marker_vertical", { end, }) +minetest.register_entity("digtron:marker_crate", { + initial_properties = { + visual = "cube", + visual_size = {x=1.05, y=1.05}, + textures = {"digtron_crate.png", "digtron_crate.png", "digtron_crate.png", "digtron_crate.png", "digtron_crate.png", "digtron_crate.png"}, + collisionbox = {-0.525, -0.525, -0.525, 0.525, 0.525, 0.525}, + physical = false, + }, + + on_activate = function(self, staticdata) + minetest.after(5.0, + function(self) + self.object:remove() + end, + self) + end, + + on_rightclick=function(self, clicker) + self.object:remove() + end, + + on_punch = function(self, hitter) + self.object:remove() + end, +}) + minetest.register_entity("digtron:builder_item", { initial_properties = { |