Updated homedecor_modpack
0
mods/homedecor_modpack/fake_fire/LICENSE.txt
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/README.txt
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/changelog.txt
Executable file → Normal file
2
mods/homedecor_modpack/fake_fire/depends.txt
Executable file → Normal file
@ -1 +1 @@
|
||||
default
|
||||
default
|
||||
|
74
mods/homedecor_modpack/fake_fire/init.lua
Executable file → Normal file
@ -1,37 +1,37 @@
|
||||
--[[
|
||||
|
||||
The 'Fake-Fire' mod was originally created by Semmett9.
|
||||
|
||||
URL to the 'Fake-Fire' thread on Minetest.net:
|
||||
http://forum.minetest.net/viewtopic.php?id=6145
|
||||
|
||||
I've customized it a bit. Please see the changelog.txt file for more details.
|
||||
|
||||
~ LazyJ, 2014_03_15
|
||||
|
||||
--]]
|
||||
|
||||
dofile(minetest.get_modpath("fake_fire").."/modfiles/nodes.lua")
|
||||
dofile(minetest.get_modpath("fake_fire").."/modfiles/crafts.lua")
|
||||
dofile(minetest.get_modpath("fake_fire").."/modfiles/abms.lua")
|
||||
|
||||
|
||||
|
||||
--[[
|
||||
|
||||
The lines below, at the end, are from the original author, Semmett9.
|
||||
|
||||
Thanks for a nice mod, Semmett9. ;)
|
||||
|
||||
~ LazyJ, 2014_03_14
|
||||
|
||||
--]]
|
||||
|
||||
|
||||
|
||||
-- Thanks-
|
||||
|
||||
-- Many thanks for addi for his help in coding. --
|
||||
|
||||
-- Many thanks for the players on the King Arthur's land server for giving --
|
||||
-- me support, ideas and allowing me to add the mod to the server itself. --
|
||||
--[[
|
||||
|
||||
The 'Fake-Fire' mod was originally created by Semmett9.
|
||||
|
||||
URL to the 'Fake-Fire' thread on Minetest.net:
|
||||
http://forum.minetest.net/viewtopic.php?id=6145
|
||||
|
||||
I've customized it a bit. Please see the changelog.txt file for more details.
|
||||
|
||||
~ LazyJ, 2014_03_15
|
||||
|
||||
--]]
|
||||
|
||||
dofile(minetest.get_modpath("fake_fire").."/modfiles/nodes.lua")
|
||||
dofile(minetest.get_modpath("fake_fire").."/modfiles/crafts.lua")
|
||||
dofile(minetest.get_modpath("fake_fire").."/modfiles/abms.lua")
|
||||
|
||||
|
||||
|
||||
--[[
|
||||
|
||||
The lines below, at the end, are from the original author, Semmett9.
|
||||
|
||||
Thanks for a nice mod, Semmett9. ;)
|
||||
|
||||
~ LazyJ, 2014_03_14
|
||||
|
||||
--]]
|
||||
|
||||
|
||||
|
||||
-- Thanks-
|
||||
|
||||
-- Many thanks for addi for his help in coding. --
|
||||
|
||||
-- Many thanks for the players on the King Arthur's land server for giving --
|
||||
-- me support, ideas and allowing me to add the mod to the server itself. --
|
||||
|
36
mods/homedecor_modpack/fake_fire/modfiles/abms.lua
Executable file → Normal file
@ -22,13 +22,13 @@ minetest.register_abm({
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
if minetest.find_node_near(pos, 1, {"default:water_source",
|
||||
if minetest.env:find_node_near(pos, 1, {"default:water_source",
|
||||
"default:water_flowing","default:lava_source",
|
||||
"default:lava_flowing"}) then
|
||||
minetest.sound_play("fire_extinguish",
|
||||
{gain = 1.0, max_hear_distance = 20,})
|
||||
node.name = "air"
|
||||
minetest.set_node(pos, node)
|
||||
minetest.env:set_node(pos, node)
|
||||
end
|
||||
end
|
||||
})
|
||||
@ -62,22 +62,22 @@ minetest.register_abm({
|
||||
minetest.get_node({x=pos.x, y=pos.y+2.0, z=pos.z}).name == "air"
|
||||
then
|
||||
local image_number = math.random(4)
|
||||
minetest.add_particlespawner(
|
||||
8, --particles amount
|
||||
1, --time
|
||||
{x=pos.x-0.25, y=pos.y+0.4, z=pos.z-0.25}, --min. smoke position
|
||||
{x=pos.x+0.25, y=pos.y+8, z=pos.z+0.25}, --max. smoke position
|
||||
{x=-0.2, y=0.3, z=-0.2}, --min. particle velocity
|
||||
{x=0.2, y=1, z=0.2}, --max. particle velocity
|
||||
{x=0,y=0,z=0}, --min. particle acceleration
|
||||
{x=0,y=0,z=0}, --max. particle acceleration
|
||||
0.5, --min. time particle expiration
|
||||
3, --max. time particle expiration
|
||||
2, --min. particle size
|
||||
10, --max. particle size
|
||||
false, --collision detection
|
||||
"smoke_particle_"..image_number..".png" --textures
|
||||
)
|
||||
minetest.add_particlespawner({
|
||||
amount = 8,
|
||||
time = 1,
|
||||
minpos = {x=pos.x-0.25, y=pos.y+0.4, z=pos.z-0.25},
|
||||
maxpos = {x=pos.x+0.25, y=pos.y+8, z=pos.z+0.25},
|
||||
minvel = {x=-0.2, y=0.3, z=-0.2},
|
||||
maxvel = {x=0.2, y=1, z=0.2},
|
||||
minacc = {x=0,y=0,z=0},
|
||||
maxacc = {x=0,y=0,z=0},
|
||||
minexptime = 0.5,
|
||||
maxexptime = 3,
|
||||
minsize = 2,
|
||||
maxsize = 10,
|
||||
collisiondetection = false,
|
||||
texture = "smoke_particle_"..image_number..".png",
|
||||
})
|
||||
end
|
||||
end
|
||||
})
|
||||
|
4
mods/homedecor_modpack/fake_fire/modfiles/crafts.lua
Executable file → Normal file
@ -15,9 +15,9 @@ minetest.register_craftitem("fake_fire:old_flint_and_steel", {
|
||||
stack_max = 1,
|
||||
liquids_pointable = false,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
n = minetest.get_node(pointed_thing)
|
||||
n = minetest.env:get_node(pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
minetest.add_node(pointed_thing.above,
|
||||
minetest.env:add_node(pointed_thing.above,
|
||||
{name="fake_fire:fake_fire"})
|
||||
minetest.sound_play("",
|
||||
{gain = 1.0, max_hear_distance = 20,})
|
||||
|
2
mods/homedecor_modpack/fake_fire/modfiles/nodes.lua
Executable file → Normal file
@ -1,3 +1,5 @@
|
||||
local cp = nil
|
||||
|
||||
-- FLAME TYPES
|
||||
|
||||
-- SMOKEY FIRE (TRIGGERS SMOKE ABM)
|
||||
|
0
mods/homedecor_modpack/fake_fire/sounds/fire_extinguish.ogg
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/sounds/fire_ignite.ogg
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/sounds/fire_small.ogg
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/chimney_top_sandstone.png
Executable file → Normal file
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 615 B |
0
mods/homedecor_modpack/fake_fire/textures/chimney_top_sandstone.xcf
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/chimney_top_stone.png
Executable file → Normal file
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 372 B |
0
mods/homedecor_modpack/fake_fire/textures/chimney_top_stone.xcf
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/embers_animated.png
Executable file → Normal file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
0
mods/homedecor_modpack/fake_fire/textures/embers_animated.xcf
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/fake_fire.png
Executable file → Normal file
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B |
0
mods/homedecor_modpack/fake_fire/textures/fake_fire_animated.png
Executable file → Normal file
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
0
mods/homedecor_modpack/fake_fire/textures/fake_fire_animated_old.png
Executable file → Normal file
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
0
mods/homedecor_modpack/fake_fire/textures/fake_fire_embers.png
Executable file → Normal file
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
0
mods/homedecor_modpack/fake_fire/textures/fake_fire_embers.xcf
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/flint.png
Executable file → Normal file
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 276 B |
0
mods/homedecor_modpack/fake_fire/textures/flint_and_steel.png
Executable file → Normal file
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
0
mods/homedecor_modpack/fake_fire/textures/ice_fire.png
Executable file → Normal file
Before Width: | Height: | Size: 674 B After Width: | Height: | Size: 674 B |
0
mods/homedecor_modpack/fake_fire/textures/ice_fire.xcf
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/ice_fire_animated.png
Executable file → Normal file
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
0
mods/homedecor_modpack/fake_fire/textures/ice_fire_animated.xcf
Executable file → Normal file
0
mods/homedecor_modpack/fake_fire/textures/smoke_particle_1.png
Executable file → Normal file
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
0
mods/homedecor_modpack/fake_fire/textures/smoke_particle_2.png
Executable file → Normal file
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 642 B |
0
mods/homedecor_modpack/fake_fire/textures/smoke_particle_3.png
Executable file → Normal file
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 670 B |
0
mods/homedecor_modpack/fake_fire/textures/smoke_particle_4.png
Executable file → Normal file
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |