minor changes
This commit is contained in:
parent
fad2925295
commit
7b665cc06f
@ -11,3 +11,7 @@ Torch rotation by addi, shamelessly copied from the 3d_torches mod.
|
|||||||
|
|
||||||
Inspiration:
|
Inspiration:
|
||||||
Napiophelios, from the forum, who gave me some really good ideas from the old campfire mod, which I didn't even know about.
|
Napiophelios, from the forum, who gave me some really good ideas from the old campfire mod, which I didn't even know about.
|
||||||
|
|
||||||
|
Sound Effects:
|
||||||
|
Sparker sound from BroAsis on Freesound. https://www.freesound.org/people/BroAsis/sounds/106853/
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
11-12-14:
|
11-12-14:
|
||||||
Removed the ABM for torches, and replaced the two nodes with just one.
|
Removed the ABM for torches, and replaced the two nodes with just one.
|
||||||
Tweaked the lighter, it should last longer and light fires faster.
|
Tweaked the lighter, it should last longer and light fires faster. Added a sparking sound effect as well.
|
||||||
|
The lighter takes damage every time it is used, regardless of if it starts a fire, or is used on kindling.
|
||||||
|
|
||||||
11-11-14:
|
11-11-14:
|
||||||
Charcoal blocks are now flammable.
|
Charcoal blocks are now flammable.
|
||||||
|
26
init.lua
26
init.lua
@ -77,7 +77,7 @@ minetest.register_abm({ -- Controls non-contained fire
|
|||||||
'fuel_time',
|
'fuel_time',
|
||||||
}) do
|
}) do
|
||||||
if meta:get_string(name) == '' then
|
if meta:get_string(name) == '' then
|
||||||
meta:set_float(name, 0.0)
|
meta:set_float(name, 5.0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
@ -219,15 +219,15 @@ minetest.register_node(':default:torch', {
|
|||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
mesh = {
|
mesh = {
|
||||||
type = 'wallmounted',
|
type = 'wallmounted',
|
||||||
wall_top = 'more_fire_torch.obj',
|
wall_top = 'more_fire_campfire.obj',
|
||||||
wall_bottom = 'more_fire_campfire.obj',
|
wall_bottom = 'more_fire_torch.obj',
|
||||||
wall_side = 'more_fire_torch_wall.obj',
|
wall_side = 'more_fire_torch_wall.obj',
|
||||||
},
|
},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
wall_top = {-0.25, -0.0625, -0.25, 0.25, 0.5 , 0.25},
|
wall_top = {-0.25, -0.5 , -0.25, 0.25, 0.0625, 0.25},
|
||||||
wall_bottom = {-0.25, -0.5 , -0.25, 0.25, 0.0625, 0.25},
|
wall_bottom = {-1/11, -1/2, -1/11, 1/11, 1/3, 1/11},
|
||||||
wall_side = {-0.25, -0.5 , -0.25, -0.5, 0.0625, 0.25},
|
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ minetest.register_node('more_fire:kindling', {
|
|||||||
wield_image = 'more_fire_kindling.png',
|
wield_image = 'more_fire_kindling.png',
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {dig_immediate=3, flammable=1,},
|
groups = {dig_immediate=2, flammable=1,},
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = 'fixed',
|
type = 'fixed',
|
||||||
@ -264,7 +264,7 @@ minetest.register_node('more_fire:embers', {
|
|||||||
wield_image = 'more_fire_campfire.png',
|
wield_image = 'more_fire_campfire.png',
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {dig_immediate=3, flammable=1,},
|
groups = {dig_immediate=2, flammable=1,},
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
drop = 'more_fire:kindling',
|
drop = 'more_fire:kindling',
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -289,7 +289,7 @@ end,
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node('more_fire:campfire', {
|
minetest.register_node('more_fire:campfire', {
|
||||||
description = 'Campfire',
|
description = 'Burning Campfire',
|
||||||
drawtype = 'mesh',
|
drawtype = 'mesh',
|
||||||
mesh = 'more_fire_campfire.obj',
|
mesh = 'more_fire_campfire.obj',
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -299,10 +299,9 @@ minetest.register_node('more_fire:campfire', {
|
|||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
walkable = false,
|
walkable = false,
|
||||||
damage_per_second = 1,
|
damage_per_second = 1,
|
||||||
drop = 'more_fire:charcoal',
|
|
||||||
light_source = 14,
|
light_source = 14,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=2,hot=2,attached_node=1,dig_immediate=3,igniter=1,not_in_creative_inventory=1},
|
groups = {cracky=2,hot=2,attached_node=1,igniter=1,not_in_creative_inventory=1},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = 'fixed',
|
type = 'fixed',
|
||||||
fixed = { -0.48, -0.5, -0.48, 0.48, -0.5, 0.48 },
|
fixed = { -0.48, -0.5, -0.48, 0.48, -0.5, 0.48 },
|
||||||
@ -516,15 +515,16 @@ minetest.register_tool('more_fire:lighter', {
|
|||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level = 0,
|
max_drop_level = 0,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
flammable = {uses = 120, maxlevel = 1},
|
flammable = {uses = 200, maxlevel = 1},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
on_use = function(itemstack, user, pointed_thing, pos)
|
on_use = function(itemstack, user, pointed_thing, pos)
|
||||||
|
minetest.sound_play("spark", {gain = 1.0, max_hear_distance = 32, loop = false })
|
||||||
if pointed_thing.type == 'node'
|
if pointed_thing.type == 'node'
|
||||||
and string.find(minetest.get_node(pointed_thing.under).name, 'more_fire:kindling')
|
and string.find(minetest.get_node(pointed_thing.under).name, 'more_fire:kindling')
|
||||||
then
|
then
|
||||||
burn(pointed_thing)
|
burn(pointed_thing)
|
||||||
itemstack:add_wear(65535/120)
|
itemstack:add_wear(65535/200)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
BIN
sounds/spark.ogg
Normal file
BIN
sounds/spark.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user