dependency on ethereal added

master
A. Demant 2019-01-08 18:26:09 +01:00
parent 51b7dc8a62
commit 79d795f794
3 changed files with 27 additions and 15 deletions

View File

@ -1,8 +1,15 @@
minetest.register_craftitem('more_fire:charcoal', {
description = 'Charcoal',
inventory_image = 'more_fire_charcoal_lump.png',
groups = {coal = 1}
})
-- check if charcoal already defined by mod ethereal
if minetest.get_modpath("ethereal") then
minetest.override_item("ethereal:charcoal_lump",{groups={coal = 1}})
minetest.register_alias("more_fire:charcoal", "ethereal:charcoal_lump")
else
minetest.register_craftitem('more_fire:charcoal', {
description = 'Charcoal',
inventory_image = 'more_fire_charcoal_lump.png',
groups = {coal = 1}
})
end
minetest.register_craftitem('more_fire:oil', {
description = 'lantern oil',

View File

@ -135,11 +135,13 @@ minetest.register_craft({
})
-- cooking recipes
minetest.register_craft({
type = 'cooking',
recipe = 'group:tree',
output = 'more_fire:charcoal',
})
if not minetest.get_modpath("ethereal") then
minetest.register_craft({
type = 'cooking',
recipe = 'group:tree',
output = 'more_fire:charcoal',
})
end
minetest.register_craft({
type = 'cooking',
@ -149,11 +151,13 @@ minetest.register_craft({
})
-- fuel recipes
minetest.register_craft({
type = 'fuel',
recipe = 'more_fire:charcoal',
burntime = 35,
})
if not minetest.get_modpath("ethereal") then
minetest.register_craft({
type = 'fuel',
recipe = 'more_fire:charcoal',
burntime = 35,
})
end
minetest.register_craft({
type = 'fuel',

View File

@ -2,3 +2,4 @@ name = more_fire
depends=default,farming,fire,vessels
description = This is a Minetest mod that adds more/better fire related stuff.
author = Napiophelios
optional_depends = ethereal