changes for mt 5; png optim
3
mod.conf
|
@ -1 +1,4 @@
|
|||
name = more_fire
|
||||
depends=default,farming,fire,vessels
|
||||
description = This is a Minetest mod that adds more/better fire related stuff.
|
||||
author = Napiophelios
|
||||
|
|
|
@ -31,7 +31,7 @@ minetest.register_node(':default:torch', {
|
|||
on_construct = function(pos)
|
||||
if finite_torches == true then
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
timer:start(960)
|
||||
timer:start(minetest.settings:get("more_fire.torch_burn_time") or 960)
|
||||
end
|
||||
end,
|
||||
on_timer = function(pos, elapsed)
|
||||
|
@ -75,7 +75,7 @@ minetest.register_node('more_fire:torch_weak', {
|
|||
on_construct = function(pos)
|
||||
if finite_torches == true then
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
timer:start(480)
|
||||
timer:start(minetest.settings:get("more_fire.torch_burn_time")/2 or 480)
|
||||
end
|
||||
end,
|
||||
on_timer = function(pos, elapsed)
|
||||
|
@ -388,7 +388,7 @@ minetest.register_node('more_fire:oil_lamp_on', {
|
|||
local timer = minetest.get_node_timer(pos)
|
||||
if inv:contains_item('fuel', 'more_fire:oil') then
|
||||
local fuelstack = inv:get_stack('fuel', 1)
|
||||
timer:start(12*60)
|
||||
timer:start(minetest.settings:get("more_fire.oillamp_burn_time") or 720)
|
||||
fuelstack:take_item()
|
||||
inv:set_stack('fuel', 1, fuelstack)
|
||||
if inv:is_empty('fuel') then
|
||||
|
@ -482,7 +482,7 @@ minetest.register_node('more_fire:oil_lamp_table_on', {
|
|||
local timer = minetest.get_node_timer(pos)
|
||||
if inv:contains_item('fuel', 'more_fire:oil') then
|
||||
local fuelstack = inv:get_stack('fuel', 1)
|
||||
timer:start(12*60)
|
||||
timer:start(minetest.settings:get("more_fire.oillamp_burn_time") or 720)
|
||||
fuelstack:take_item()
|
||||
inv:set_stack('fuel', 1, fuelstack)
|
||||
if inv:is_empty('fuel') then
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
more_fire.torch_burn_time (Burn time of new torches) int 960 100 10000
|
||||
more_fire.oillamp_burn_time (Burn time of oil lamp) int 720 100 10000
|
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 595 B |
Before Width: | Height: | Size: 382 KiB After Width: | Height: | Size: 323 KiB |
Before Width: | Height: | Size: 686 B After Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 686 B After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 183 B |
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 115 B |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 689 B |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 784 B After Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 578 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 778 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 673 B |