forked from mt-mods/jumpdrive
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fuel.lua
26 lines (20 loc) · 726 Bytes
/
fuel.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local fuel_list = {}
jumpdrive.fuel = {}
jumpdrive.fuel.register = function(item_name, value)
fuel_list[item_name] = value
end
jumpdrive.fuel.get_value = function(item_name)
if not item_name then
return 0
end
return fuel_list[item_name] or 0
end
if minetest.get_modpath("default") then
jumpdrive.fuel.register("default:mese_crystal_fragment", 100)
jumpdrive.fuel.register("default:mese_crystal", 900)
jumpdrive.fuel.register("default:mese", 8100)
end
if minetest.get_modpath("mcl_core") and minetest.get_modpath("mesecons") and minetest.get_modpath("mesecons_torch") then
jumpdrive.fuel.register("mesecons:wire_00000000_off", 900)
jumpdrive.fuel.register("mesecons_torch:redstoneblock", 8100)
end