Added Paramat's eternal flame
This commit is contained in:
parent
ae994fbc9c
commit
ce2149134e
59
init.lua
59
init.lua
@ -5,27 +5,58 @@ fire.mod = "redo"
|
||||
local disable_fire = minetest.setting_getbool("disable_fire")
|
||||
|
||||
minetest.register_node("fire:basic_flame", {
|
||||
description = "Fire",
|
||||
description = "Basic Flame",
|
||||
drawtype = "plantlike",
|
||||
tiles = {{
|
||||
name = "fire_basic_flame_animated.png",
|
||||
animation = {
|
||||
type="vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 1
|
||||
tiles = {
|
||||
{
|
||||
name = "fire_basic_flame_animated.png",
|
||||
animation = {
|
||||
type="vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 1
|
||||
},
|
||||
},
|
||||
}},
|
||||
},
|
||||
inventory_image = "fire_basic_flame.png",
|
||||
paramtype = "light",
|
||||
light_source = 14,
|
||||
groups = {igniter = 2, dig_immediate = 3},
|
||||
drop = '',
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
damage_per_second = 4,
|
||||
on_blast = function() end,
|
||||
groups = {igniter = 2, dig_immediate = 3},
|
||||
drop = '',
|
||||
on_blast = function()
|
||||
end, -- unaffected by explosions
|
||||
})
|
||||
|
||||
minetest.register_node("fire:eternal_flame", {
|
||||
description = "Eternal Flame",
|
||||
drawtype = "firelike",
|
||||
tiles = {
|
||||
{
|
||||
name = "fire_basic_flame_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 1
|
||||
},
|
||||
},
|
||||
},
|
||||
inventory_image = "fire_basic_flame.png",
|
||||
paramtype = "light",
|
||||
light_source = 14,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
damage_per_second = 4,
|
||||
groups = {igniter = 2, dig_immediate = 3},
|
||||
drop = "",
|
||||
|
||||
on_blast = function()
|
||||
end,
|
||||
})
|
||||
|
||||
-- extinguish flames quickly with dedicated ABM
|
||||
@ -41,7 +72,7 @@ minetest.register_abm({
|
||||
|
||||
-- extinguish flames quickly with water, snow, ice
|
||||
minetest.register_abm({
|
||||
nodenames = {"fire:basic_flame"},
|
||||
nodenames = {"fire:basic_flame", "fire:eternal_flame"},
|
||||
neighbors = {"group:puts_out_fire"},
|
||||
interval = 3,
|
||||
chance = 2,
|
||||
@ -57,7 +88,7 @@ minetest.register_abm({
|
||||
nodenames = {"group:flammable"},
|
||||
neighbors = {"group:igniter"},
|
||||
interval = 7,
|
||||
chance = 32,
|
||||
chance = 16,
|
||||
action = function(p0, node, _, _)
|
||||
-- check to see if fire is still disabled
|
||||
disable_fire = minetest.setting_getbool("disable_fire")
|
||||
|
Loading…
x
Reference in New Issue
Block a user