Compare commits

...

6 Commits

Author SHA1 Message Date
APercy ca480ce750
Merge pull request #2 from JakubVanek/fix-technic
fix: add technic and basic_machines as optional depends
2020-07-20 21:32:13 -03:00
Jakub Vaněk 57d5e4b0b4
fix: add technic and basic_machines as optional depends 2020-07-20 21:46:37 +02:00
Alexsandro Percy f0ef2d3642 removed useless function and included potato 2020-05-17 19:50:12 -03:00
Alexsandro Percy 3b9b9de106 check technic and basic machines var content to avoid crash 2020-05-14 06:28:28 -03:00
APercy 1aa6a1e4a5
Merge pull request #1 from berengma/master
add support for technic and basic_machines
2020-04-26 11:44:52 -03:00
berengma e0cbcf31ba add support for technic and basic_machines 2020-04-26 16:26:33 +02:00
3 changed files with 24 additions and 9 deletions

View File

@ -1,3 +1,5 @@
player_api
default?
creative?
technic?
basic_machines?

View File

@ -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;]"

View File

@ -1,5 +1,5 @@
name = biofuel
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
title = Biofuel Distiller Kit