73 lines
2.0 KiB
Lua
73 lines
2.0 KiB
Lua
|
--[[
|
||
|
Everness. Never ending discovery in Everness mapgen.
|
||
|
Copyright (C) 2023 SaKeL <juraj.vajda@gmail.com>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Lesser General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2.1 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Lesser General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Lesser General Public
|
||
|
License along with this library; if not, write to juraj.vajda@gmail.com
|
||
|
--]]
|
||
|
|
||
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||
|
|
||
|
--
|
||
|
-- Craftitem registry
|
||
|
--
|
||
|
|
||
|
-- Quartz Crystal
|
||
|
minetest.register_craftitem('everness:quartz_crystal', {
|
||
|
description = S('Quartz Crystal'),
|
||
|
inventory_image = 'everness_quartz.png',
|
||
|
})
|
||
|
|
||
|
minetest.register_craftitem('everness:bamboo_item', {
|
||
|
description = S('Bamboo'),
|
||
|
inventory_image = 'everness_bamboo_item.png',
|
||
|
})
|
||
|
|
||
|
minetest.register_craftitem('everness:baobab_fruit_roasted', {
|
||
|
description = S('Baobab Roasted Fruit'),
|
||
|
inventory_image = 'everness_baobab_tree_fruit_roasted.png',
|
||
|
on_use = minetest.item_eat(4),
|
||
|
})
|
||
|
|
||
|
minetest.register_craftitem('everness:pyrite_ingot', {
|
||
|
description = S('Pyrite Ingot'),
|
||
|
inventory_image = 'everness_pyrite_ingot.png'
|
||
|
})
|
||
|
|
||
|
minetest.register_craftitem('everness:pyrite_lump', {
|
||
|
description = S('Pyrite Lump'),
|
||
|
inventory_image = 'everness_pyrite_lump.png'
|
||
|
})
|
||
|
|
||
|
--
|
||
|
-- Crafting recipes
|
||
|
--
|
||
|
|
||
|
minetest.register_craft({
|
||
|
output = 'everness:pyrite_ingot 9',
|
||
|
recipe = {
|
||
|
{ 'everness:pyriteblock' },
|
||
|
}
|
||
|
})
|
||
|
|
||
|
--
|
||
|
-- Cooking recipes
|
||
|
--
|
||
|
|
||
|
minetest.register_craft({
|
||
|
type = 'cooking',
|
||
|
output = 'everness:pyrite_ingot',
|
||
|
recipe = 'everness:pyrite_lump',
|
||
|
})
|
||
|
|