forked from thunderdog1138/star_wars
Update 'mods/fire/init.lua'
This commit is contained in:
parent
8ce3855706
commit
5546d1749e
|
@ -46,7 +46,7 @@ minetest.register_node("fire:basic_flame", {
|
||||||
drawtype = "firelike",
|
drawtype = "firelike",
|
||||||
tiles = {
|
tiles = {
|
||||||
{
|
{
|
||||||
name = "fire_basic_flame_animated.png",
|
name = "fire_basic_animated.png",
|
||||||
animation = {
|
animation = {
|
||||||
type = "vertical_frames",
|
type = "vertical_frames",
|
||||||
aspect_w = 16,
|
aspect_w = 16,
|
||||||
|
@ -55,7 +55,7 @@ minetest.register_node("fire:basic_flame", {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
inventory_image = "fire_basic_flame.png",
|
inventory_image = "fire_basic.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 13,
|
light_source = 13,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
@ -92,7 +92,7 @@ minetest.register_node("fire:permanent_flame", {
|
||||||
drawtype = "firelike",
|
drawtype = "firelike",
|
||||||
tiles = {
|
tiles = {
|
||||||
{
|
{
|
||||||
name = "fire_basic_flame_animated.png",
|
name = "fire_basic_animated.png",
|
||||||
animation = {
|
animation = {
|
||||||
type = "vertical_frames",
|
type = "vertical_frames",
|
||||||
aspect_w = 16,
|
aspect_w = 16,
|
||||||
|
@ -101,7 +101,7 @@ minetest.register_node("fire:permanent_flame", {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
inventory_image = "fire_basic_flame.png",
|
inventory_image = "fire_basic.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 13,
|
light_source = 13,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
@ -120,7 +120,7 @@ minetest.register_node("fire:permanent_flame", {
|
||||||
|
|
||||||
minetest.register_tool("fire:lighter", {
|
minetest.register_tool("fire:lighter", {
|
||||||
description = S("Lighter"),
|
description = S("Lighter"),
|
||||||
inventory_image = "fire_lighter.png",
|
inventory_image = "lighter.png",
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = "default_tool_breaks"},
|
||||||
|
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
@ -169,6 +169,14 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "fire:lighter",
|
||||||
|
recipe = {
|
||||||
|
{"tnt:gunpowder", "default:durasteel_ingot"},
|
||||||
|
{"default:durasteel_ingot", "default:durasteel_ingot"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
-- Override coal_block to enable permanent flame above
|
-- Override coal_block to enable permanent flame above
|
||||||
-- Coalblock is non-flammable to avoid unwanted basic_flame nodes
|
-- Coalblock is non-flammable to avoid unwanted basic_flame nodes
|
||||||
|
@ -360,4 +368,4 @@ if fire_enabled then
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue