everness/craftitems.lua
Jaidyn Ann a5ac304413 Tweak strings for translation-friendliness
Mainly replacing concats with individual names.
No functional changes.
2024-07-28 10:51:12 -05:00

78 lines
2.1 KiB
Lua

--[[
Everness. Never ending discovery in Everness mapgen.
Copyright (C) 2024 SaKeL
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
Everness:register_craftitem('everness:quartz_crystal', {
description = S('Quartz Crystal'),
inventory_image = 'everness_quartz.png',
})
Everness:register_craftitem('everness:bamboo_item', {
description = S('Bamboo'),
inventory_image = 'everness_bamboo_item.png',
})
Everness:register_craftitem('everness:baobab_fruit_roasted', {
description = S('Baobab Roasted Fruit') .. '\n'.. minetest.colorize(Everness.colors.brown, S('Hunger: @1', 4)),
inventory_image = 'everness_baobab_tree_fruit_roasted.png',
on_use = minetest.item_eat(4),
})
Everness:register_craftitem('everness:pyrite_ingot', {
description = S('Pyrite Ingot'),
inventory_image = 'everness_pyrite_ingot.png'
})
Everness:register_craftitem('everness:pyrite_lump', {
description = S('Pyrite Lump'),
inventory_image = 'everness_pyrite_lump.png'
})
Everness:register_craftitem('everness:coconut_fruit', {
description = S('Coconut') .. '\n'.. minetest.colorize(Everness.colors.brown, S('Hunger: @1', 4)),
inventory_image = 'everness_coconut_item.png',
wield_scale = { x = 2, y = 2, z = 1 },
on_use = minetest.item_eat(4),
})
--
-- 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',
})