1
0
mirror of https://gitlab.com/echoes91/spears.git synced 2025-09-08 12:15:33 +02:00

4 Commits

Author SHA1 Message Date
8770387fbc Change craft recipes that conflict with throwing mod 2020-08-08 23:46:38 +02:00
66c69c5265 Fix undeclared global variable warning at startup
DISABLE_GOLD_SPEAR
2020-06-20 16:31:26 +02:00
662e637595 Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-14 22:16:47 +02:00
sys4-fr
63d339a686 Corrige avertissement sur variable globale 2018-12-24 01:14:12 +01:00
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