diff --git a/fake_fire/depends.txt b/fake_fire/depends.txt deleted file mode 100644 index 997cb0b2..00000000 --- a/fake_fire/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default -homedecor_common diff --git a/fake_fire/init.lua b/fake_fire/init.lua index 07de66ed..21f82cc0 100644 --- a/fake_fire/init.lua +++ b/fake_fire/init.lua @@ -1,11 +1,8 @@ - -local S = homedecor.gettext - -screwdriver = screwdriver or {} +local S = minetest.get_translator("fake_fire") local function fire_particles_on(pos) -- 3 layers of fire local meta = minetest.get_meta(pos) - local id = minetest.add_particlespawner({ -- 1 layer big particles fire + local id1 = minetest.add_particlespawner({ -- 1 layer big particles fire amount = 9, time = 0, minpos = {x = pos.x - 0.2, y = pos.y - 0.4, z = pos.z - 0.2}, @@ -23,9 +20,9 @@ local function fire_particles_on(pos) -- 3 layers of fire texture = "fake_fire_particle_anim_fire.png", animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.8,}, }) - meta:set_int("layer_1", id) + meta:set_int("layer_1", id1) - local id = minetest.add_particlespawner({ -- 2 layer smol particles fire + local id2 = minetest.add_particlespawner({ -- 2 layer smol particles fire amount = 1, time = 0, minpos = {x = pos.x - 0.1, y = pos.y, z = pos.z - 0.1}, @@ -43,9 +40,9 @@ local function fire_particles_on(pos) -- 3 layers of fire texture = "fake_fire_particle_anim_fire.png", animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.7,}, }) - meta:set_int("layer_2", id) + meta:set_int("layer_2", id2) - local id = minetest.add_particlespawner({ --3 layer smoke + local id3 = minetest.add_particlespawner({ --3 layer smoke amount = 1, time = 0, minpos = {x = pos.x - 0.1, y = pos.y - 0.2, z = pos.z - 0.1}, @@ -63,7 +60,7 @@ local function fire_particles_on(pos) -- 3 layers of fire texture = "fake_fire_particle_anim_smoke.png", animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.9,}, }) - meta:set_int("layer_3", id) + meta:set_int("layer_3", id3) end local function fire_particles_off(pos) @@ -199,7 +196,6 @@ minetest.register_node("fake_fire:fancy_fire", { return itemstack end, on_construct = function(pos) - local meta = minetest.get_meta(pos) fire_particles_on(pos) end, on_destruct = function(pos, oldnode, oldmetadata, digger) diff --git a/fake_fire/locale/fake_fire.de.tr b/fake_fire/locale/fake_fire.de.tr new file mode 100644 index 00000000..029951fa --- /dev/null +++ b/fake_fire/locale/fake_fire.de.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Schönes Feuer +Glowing Embers=Glühende Asche +Ice fire=Eisfeuer +Sandstone chimney top=Sandsteinschornsteinaufsatz +Stone chimney top=Steinschornsteinaufsatz diff --git a/fake_fire/locale/fake_fire.es.tr b/fake_fire/locale/fake_fire.es.tr new file mode 100644 index 00000000..84ee0483 --- /dev/null +++ b/fake_fire/locale/fake_fire.es.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Fuego fantasía +Glowing Embers=Brasas ardientes +Ice fire=Fuego de hielo +Sandstone chimney top=Chimenea de arenisca +Stone chimney top=Chimenea de piedra diff --git a/fake_fire/locale/fake_fire.fr.tr b/fake_fire/locale/fake_fire.fr.tr new file mode 100644 index 00000000..fa450eb9 --- /dev/null +++ b/fake_fire/locale/fake_fire.fr.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Feu décoratif +Glowing Embers=Braises incandescentes +Ice fire=Feu glacé +Sandstone chimney top=Haut de cheminée en grès +Stone chimney top=Haut de cheminée en pierre diff --git a/fake_fire/locale/fake_fire.ms.tr b/fake_fire/locale/fake_fire.ms.tr new file mode 100644 index 00000000..ed4c5f6f --- /dev/null +++ b/fake_fire/locale/fake_fire.ms.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Api Hiasan +Glowing Embers=Bara Api +Ice fire=Api Ais +Sandstone chimney top=Kepala Serombong Batu Pasir +Stone chimney top=Kepala Serombong Batu diff --git a/fake_fire/locale/fake_fire.pt.tr b/fake_fire/locale/fake_fire.pt.tr new file mode 100644 index 00000000..fb08cf34 --- /dev/null +++ b/fake_fire/locale/fake_fire.pt.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Fogo Chique +Glowing Embers=Brasas Brilhantes +Ice fire=Fogo de gelo +Sandstone chimney top=Topo de chaminé de arenito +Stone chimney top=Topo de chaminé de pedra diff --git a/fake_fire/locale/fake_fire.pt_BR.tr b/fake_fire/locale/fake_fire.pt_BR.tr new file mode 100644 index 00000000..fb08cf34 --- /dev/null +++ b/fake_fire/locale/fake_fire.pt_BR.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Fogo Chique +Glowing Embers=Brasas Brilhantes +Ice fire=Fogo de gelo +Sandstone chimney top=Topo de chaminé de arenito +Stone chimney top=Topo de chaminé de pedra diff --git a/fake_fire/locale/fake_fire.ru.tr b/fake_fire/locale/fake_fire.ru.tr new file mode 100644 index 00000000..bcbc5d43 --- /dev/null +++ b/fake_fire/locale/fake_fire.ru.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=Необычный огонь +Glowing Embers=Светящиеся угли +Ice fire=Ледяной огонь +Sandstone chimney top=Дымоход из песчаника на крышу +Stone chimney top=Каменный дымоход на крышу diff --git a/fake_fire/locale/fake_fire.zh_CN.tr b/fake_fire/locale/fake_fire.zh_CN.tr new file mode 100644 index 00000000..27eeef7f --- /dev/null +++ b/fake_fire/locale/fake_fire.zh_CN.tr @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire=花式火 +Glowing Embers=发光的余烬 +Ice fire=冰火 +Sandstone chimney top=砂石烟囱顶部 +Stone chimney top=鹅卵石烟囱顶部 diff --git a/fake_fire/locale/template.txt b/fake_fire/locale/template.txt new file mode 100644 index 00000000..61373dcc --- /dev/null +++ b/fake_fire/locale/template.txt @@ -0,0 +1,10 @@ +# textdomain: fake_fire + + +### init.lua ### + +Fancy Fire= +Glowing Embers= +Ice fire= +Sandstone chimney top= +Stone chimney top= diff --git a/fake_fire/mod.conf b/fake_fire/mod.conf new file mode 100644 index 00000000..c3e56ba2 --- /dev/null +++ b/fake_fire/mod.conf @@ -0,0 +1,2 @@ +name = fake_fire +depends = default