diff --git a/changelog.txt b/changelog.txt index 3b2da93..2b1836f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +11-12-14: +Removed the ABM for torches, and replaced the two nodes with just one. +Tweaked the lighter, it should last longer and light fires faster. + +11-11-14: +Charcoal blocks are now flammable. + 11-08-14: Added a kindling that will created contained fire. Updated the lighter to turn the two different kindling into the two different fires. diff --git a/init.lua b/init.lua index 5a619e8..25f6720 100644 --- a/init.lua +++ b/init.lua @@ -38,7 +38,7 @@ function more_fire.get_campfire_formspec(pos, percent) end function burn(pointed_thing) --kindling doesn't always start from the first spark - ignite_chance = math.random(7) + ignite_chance = math.random(5) if ignite_chance == 1 and string.find(minetest.get_node(pointed_thing.under).name, 'more_fire:kindling_contained') then @@ -51,40 +51,6 @@ function burn(pointed_thing) --kindling doesn't always start from the first spar end end -local function placeTorch(itemstack, placer, pointed_thing) -- Copied from 3d_torch mod, changed a few things, and removed a couple lines. - if pointed_thing.type ~= 'node' then - return itemstack - end - - local p0 = pointed_thing.under - local p1 = pointed_thing.above - local param2 = 0 - - local dir = { - x = p1.x - p0.x, - y = p1.y - p0.y, - z = p1.z - p0.z - } - param2 = minetest.dir_to_facedir(dir,false) - local correct_rotation={ - [0]=3, - [1]=0, - [2]=1, - [3]=2 - } - if p0.y