2023-02-01 22:44:42 -06:00
|
|
|
--[[
|
|
|
|
Everness. Never ending discovery in Everness mapgen.
|
2024-01-03 13:50:17 -06:00
|
|
|
Copyright (C) 2024 SaKeL
|
2023-02-01 22:44:42 -06:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
--]]
|
|
|
|
|
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Craftitem registry
|
|
|
|
--
|
|
|
|
|
|
|
|
-- Quartz Crystal
|
2024-01-25 14:31:55 -06:00
|
|
|
Everness:register_craftitem('everness:quartz_crystal', {
|
2023-02-01 22:44:42 -06:00
|
|
|
description = S('Quartz Crystal'),
|
|
|
|
inventory_image = 'everness_quartz.png',
|
|
|
|
})
|
|
|
|
|
2024-01-25 14:31:55 -06:00
|
|
|
Everness:register_craftitem('everness:bamboo_item', {
|
2023-02-01 22:44:42 -06:00
|
|
|
description = S('Bamboo'),
|
|
|
|
inventory_image = 'everness_bamboo_item.png',
|
|
|
|
})
|
|
|
|
|
2024-01-25 14:31:55 -06:00
|
|
|
Everness:register_craftitem('everness:baobab_fruit_roasted', {
|
2024-01-24 09:24:34 -06:00
|
|
|
description = S('Baobab Roasted Fruit') .. '\n'.. minetest.colorize(Everness.colors.brown, S('Hunger') .. ': 4'),
|
2023-02-01 22:44:42 -06:00
|
|
|
inventory_image = 'everness_baobab_tree_fruit_roasted.png',
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
})
|
|
|
|
|
2024-01-25 14:31:55 -06:00
|
|
|
Everness:register_craftitem('everness:pyrite_ingot', {
|
2023-02-01 22:44:42 -06:00
|
|
|
description = S('Pyrite Ingot'),
|
|
|
|
inventory_image = 'everness_pyrite_ingot.png'
|
|
|
|
})
|
|
|
|
|
2024-01-25 14:31:55 -06:00
|
|
|
Everness:register_craftitem('everness:pyrite_lump', {
|
2023-02-01 22:44:42 -06:00
|
|
|
description = S('Pyrite Lump'),
|
|
|
|
inventory_image = 'everness_pyrite_lump.png'
|
|
|
|
})
|
|
|
|
|
2024-01-25 14:31:55 -06:00
|
|
|
Everness:register_craftitem('everness:coconut_fruit', {
|
2024-01-24 09:24:34 -06:00
|
|
|
description = S('Coconut') .. '\n'.. minetest.colorize(Everness.colors.brown, S('Hunger') .. ': 4'),
|
2024-01-10 22:16:52 -06:00
|
|
|
inventory_image = 'everness_coconut_item.png',
|
|
|
|
wield_scale = { x = 2, y = 2, z = 1 },
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
})
|
|
|
|
|
2023-02-01 22:44:42 -06:00
|
|
|
--
|
|
|
|
-- 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',
|
|
|
|
})
|
|
|
|
|