Compare commits
6 Commits
43ca6581bd
...
ca480ce750
Author | SHA1 | Date |
---|---|---|
APercy | ca480ce750 | |
Jakub Vaněk | 57d5e4b0b4 | |
Alexsandro Percy | f0ef2d3642 | |
Alexsandro Percy | 3b9b9de106 | |
APercy | 1aa6a1e4a5 | |
berengma | e0cbcf31ba |
|
@ -1,3 +1,5 @@
|
|||
player_api
|
||||
default?
|
||||
creative?
|
||||
technic?
|
||||
basic_machines?
|
||||
|
|
29
init.lua
29
init.lua
|
@ -4,6 +4,25 @@
|
|||
|
||||
local modname = "biofuel"
|
||||
|
||||
if minetest.get_modpath("technic") then
|
||||
if technic then
|
||||
technic.register_extractor_recipe({input = {"farming:wheat 33"}, output = "biofuel:biofuel 1"})
|
||||
technic.register_extractor_recipe({input = {"farming:corn 33"}, output = "biofuel:biofuel 1"})
|
||||
technic.register_extractor_recipe({input = {"farming:potato 33"}, output = "biofuel:biofuel 1"})
|
||||
technic.register_extractor_recipe({input = {"default:papyrus 99"}, output = "biofuel:biofuel 1"})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if minetest.get_modpath("basic_machines") then
|
||||
if basic_machines then
|
||||
basic_machines.grinder_recipes["farming:wheat"] = {50,"biofuel:biofuel",1}
|
||||
basic_machines.grinder_recipes["farming:corn"] = {50,"biofuel:biofuel",1}
|
||||
basic_machines.grinder_recipes["farming:potato"] = {50,"biofuel:biofuel",1}
|
||||
basic_machines.grinder_recipes["default:papyrus"] = {70,"biofuel:biofuel",1}
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
--[[minetest.register_craft({
|
||||
output = modname .. ":biofuel",
|
||||
|
@ -33,16 +52,10 @@ local ferment = {
|
|||
{"default:papyrus", modname .. ":biofuel"},
|
||||
{"farming:wheat", modname .. ":biofuel"},
|
||||
{"farming:corn", modname .. ":biofuel"},
|
||||
{"farming:baked_potato", modname .. ":biofuel"}
|
||||
{"farming:baked_potato", modname .. ":biofuel"},
|
||||
{"farming:potato", modname .. ":biofuel"}
|
||||
}
|
||||
|
||||
local function get_pointer_angle(energy)
|
||||
local angle = energy * 18
|
||||
angle = angle - 90
|
||||
angle = angle * -1
|
||||
return angle
|
||||
end
|
||||
|
||||
-- distiller
|
||||
biofueldistiller_formspec = "size[8,9]"
|
||||
.. "list[current_name;src;2,1;1,1;]"
|
||||
|
|
Loading…
Reference in New Issue