From 689f9a8b436a48a0adcf687bf33dba3211c72848 Mon Sep 17 00:00:00 2001 From: kilbith Date: Tue, 28 Oct 2014 19:45:10 +0100 Subject: [PATCH] Add Coffee Steam --- homedecor/misc-nodes.lua | 24 ++++++++++++++++++++++++ homedecor/textures/homedecor_steam.png | Bin 0 -> 224 bytes 2 files changed, 24 insertions(+) create mode 100644 homedecor/textures/homedecor_steam.png diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index 48f5335d..176ae71c 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -1182,6 +1182,30 @@ minetest.register_node("homedecor:coffee_maker", { } }) +minetest.register_abm({ + nodenames = "homedecor:coffee_maker", + interval = 1, + chance = 1, + action = function(pos, node) + minetest.add_particlespawner({ + amount = 1, + time = 1, + minpos = {x=pos.x-0.15, y=pos.y-0.35, z=pos.z-0.275}, + maxpos = {x=pos.x-0.15, y=pos.y-0.35, z=pos.z-0.275}, + minvel = {x=-0.003, y=0.01, z=-0.003}, + maxvel = {x=0.003, y=0.01, z=-0.003}, + minacc = {x=0.0,y=-0.0,z=-0.0}, + maxacc = {x=0.0,y=0.003,z=-0.0}, + minexptime = 2, + maxexptime = 5, + minsize = 1, + maxsize = 1.2, + collisiondetection = false, + texture = "homedecor_steam.png", + }) + end +}) + minetest.register_node("homedecor:dartboard", { description = "Dartboard", drawtype = "signlike", diff --git a/homedecor/textures/homedecor_steam.png b/homedecor/textures/homedecor_steam.png new file mode 100644 index 0000000000000000000000000000000000000000..3fcb15d0920c012a95ccb4fab01c6fa81ed39579 GIT binary patch literal 224 zcmeAS@N?(olHy`uVBq!ia0vp^93afW0wnX;%77#TQ21s-{X=I64!m5*wF$Mk}PqJC~?lu%}vcKVQ?-=O)N=GQ7F$W z$xv|j^bH7a