diff --git a/mods/bonfire/init.lua b/mods/bonfire/init.lua index 382acf7..e7158fc 100644 --- a/mods/bonfire/init.lua +++ b/mods/bonfire/init.lua @@ -1,4 +1,24 @@ bonfire = {} +local null = {x=0, y=0, z=0} + +local function add_fire(pos) + pos.y = pos.y-0.2 + minetest.add_particle(pos, null, null, 4, + 6, true, "bonfire_fire"..tostring(math.random(1,2)) ..".png") + pos.y = pos.y-0.2 + minetest.add_particle(pos, null, null, 4, + 6, true, "bonfire_fire"..tostring(math.random(1,2)) ..".png") +end + + +minetest.register_abm({ + nodenames = {"bonfire:self_active"}, + interval = 1, + chance = 1, + action = function(pos) + add_fire(pos) + end +}) bonfire.formspec = "size[8,9]".. diff --git a/mods/bonfire/textures/bonfire_fire1.png b/mods/bonfire/textures/bonfire_fire1.png new file mode 100644 index 0000000..edf1624 Binary files /dev/null and b/mods/bonfire/textures/bonfire_fire1.png differ diff --git a/mods/bonfire/textures/bonfire_fire2.png b/mods/bonfire/textures/bonfire_fire2.png new file mode 100644 index 0000000..a225f54 Binary files /dev/null and b/mods/bonfire/textures/bonfire_fire2.png differ diff --git a/mods/farming/textures/farming_anthill.png b/mods/farming/textures/farming_anthill.png new file mode 100644 index 0000000..358dadd Binary files /dev/null and b/mods/farming/textures/farming_anthill.png differ