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', -- check if charcoal already defined by mod ethereal
inventory_image = 'more_fire_charcoal_lump.png', if minetest.get_modpath("ethereal") then
groups = {coal = 1} 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', { minetest.register_craftitem('more_fire:oil', {
description = 'lantern oil', description = 'lantern oil',

View File

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

View File

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