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
|
player_api
|
||||||
default?
|
default?
|
||||||
creative?
|
creative?
|
||||||
|
technic?
|
||||||
|
basic_machines?
|
||||||
|
|
29
init.lua
29
init.lua
|
@ -4,6 +4,25 @@
|
||||||
|
|
||||||
local modname = "biofuel"
|
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
|
if minetest.get_modpath("default") then
|
||||||
--[[minetest.register_craft({
|
--[[minetest.register_craft({
|
||||||
output = modname .. ":biofuel",
|
output = modname .. ":biofuel",
|
||||||
|
@ -33,16 +52,10 @@ local ferment = {
|
||||||
{"default:papyrus", modname .. ":biofuel"},
|
{"default:papyrus", modname .. ":biofuel"},
|
||||||
{"farming:wheat", modname .. ":biofuel"},
|
{"farming:wheat", modname .. ":biofuel"},
|
||||||
{"farming:corn", 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
|
-- distiller
|
||||||
biofueldistiller_formspec = "size[8,9]"
|
biofueldistiller_formspec = "size[8,9]"
|
||||||
.. "list[current_name;src;2,1;1,1;]"
|
.. "list[current_name;src;2,1;1,1;]"
|
||||||
|
|
2
mod.conf
2
mod.conf
|
@ -1,5 +1,5 @@
|
||||||
name = biofuel
|
name = biofuel
|
||||||
depends = player_api
|
depends = player_api
|
||||||
optional_depends = default, creative
|
optional_depends = default, creative, technic, basic_machines
|
||||||
description = It adds a distiller and biofuel, for running biofuel powered machines
|
description = It adds a distiller and biofuel, for running biofuel powered machines
|
||||||
title = Biofuel Distiller Kit
|
title = Biofuel Distiller Kit
|
||||||
|
|
Loading…
Reference in New Issue