1
0
mirror of https://gitlab.com/echoes91/spears.git synced 2025-07-23 16:40:19 +02:00

4 Commits

3 changed files with 8 additions and 5 deletions

View File

@ -4,3 +4,4 @@ DISABLE_COPPER_SPEAR = false
DISABLE_BRONZE_SPEAR = false
DISABLE_DIAMOND_SPEAR = false
DISABLE_OBSIDIAN_SPEAR = false
DISABLE_GOLD_SPEAR = false

View File

@ -12,6 +12,4 @@ dofile(minetest.get_modpath("spears").."/functions.lua")
dofile(minetest.get_modpath("spears").."/tools.lua")
if minetest.setting_get("log_mods") then
minetest.log("action", "spears loaded")
end
minetest.log("action", "[spears] loaded.")

View File

@ -38,14 +38,18 @@ function spears_register_spear(spear_type, desc, base_damage, toughness, materia
minetest.register_craft({
output = 'spears:spear_' .. spear_type,
recipe = {
{'group:stick', 'group:stick', material},
{'', '', material},
{'', 'group:stick', ''},
{'group:stick', '', ''},
}
})
minetest.register_craft({
output = 'spears:spear_' .. spear_type,
recipe = {
{material, 'group:stick', 'group:stick'},
{material, '', ''},
{'', 'group:stick', ''},
{'', '', 'group:stick'},
}
})
end