Completely remove wooden tools (#331)
The default items given on respawn will consist of wooden tools instead.
This commit is contained in:
parent
b9d8d7b2a4
commit
86ce4d7328
12 changed files with 29 additions and 163 deletions
|
@ -73,6 +73,7 @@ crafting.register_recipe({
|
|||
level = 1,
|
||||
})
|
||||
|
||||
-- Wood x4
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:wood 4",
|
||||
|
@ -144,64 +145,6 @@ crafting.register_recipe({
|
|||
level = 1,
|
||||
})
|
||||
|
||||
-- Shovels
|
||||
for _, orex in pairs(full_ores) do
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:shovel_" .. orex[1],
|
||||
items = { "default:stick 2", orex[2] },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
end
|
||||
|
||||
-- Axes
|
||||
for _, orex in pairs(full_ores) do
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:axe_" .. orex[1],
|
||||
items = { "default:stick 2", orex[2] .. " 3" },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
end
|
||||
|
||||
-- Wooden plank x3 <== Wooden pickaxe
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:wood 3",
|
||||
items = { "default:pick_wood" },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
|
||||
-- Wooden plank x2 <== Wooden sword
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:wood 2",
|
||||
items = { "default:sword_wood" },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
|
||||
-- Wooden plank x3 <== Wooden axe
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:wood 3",
|
||||
items = { "default:axe_wood" },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
|
||||
-- Wooden plank <== Wooden shovel
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:wood 1",
|
||||
items = { "default:shovel_wood" },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "ctf_traps:spike 1",
|
||||
|
@ -241,3 +184,25 @@ crafting.register_recipe({
|
|||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
|
||||
-- Shovels
|
||||
for _, orex in pairs(full_ores) do
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:shovel_" .. orex[1],
|
||||
items = { "default:stick 2", orex[2] },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
end
|
||||
|
||||
-- Axes
|
||||
for _, orex in pairs(full_ores) do
|
||||
crafting.register_recipe({
|
||||
type = "inv",
|
||||
output = "default:axe_" .. orex[1],
|
||||
items = { "default:stick 2", orex[2] .. " 3" },
|
||||
always_known = true,
|
||||
level = 1,
|
||||
})
|
||||
end
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
local blacklist = {
|
||||
"default:pick_wood",
|
||||
"default:axe_wood",
|
||||
"default:shovel_wood",
|
||||
"default:sword_wood",
|
||||
"default:leaves",
|
||||
"default:jungleleaves",
|
||||
"default:pine_needles",
|
||||
|
|
|
@ -2,7 +2,8 @@ give_initial_stuff = {}
|
|||
|
||||
setmetatable(give_initial_stuff, {
|
||||
__call = function(self, player)
|
||||
minetest.log("action", "Giving initial stuff to player "..player:get_player_name())
|
||||
minetest.log("action", "Giving initial stuff to player "
|
||||
.. player:get_player_name())
|
||||
local inv = player:get_inventory()
|
||||
inv:set_list("main", {})
|
||||
inv:set_list("craft", {})
|
||||
|
@ -21,8 +22,8 @@ setmetatable(give_initial_stuff, {
|
|||
|
||||
function give_initial_stuff.get_stuff()
|
||||
return ctf_map.map and ctf_map.map.initial_stuff or {
|
||||
"default:pick_wood",
|
||||
"default:sword_wood",
|
||||
"default:pick_stone",
|
||||
"default:sword_stone",
|
||||
"default:torch 3",
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue