Completely remove wooden tools (#331)

The default items given on respawn will consist of wooden tools instead.
This commit is contained in:
ANAND 2019-03-19 22:24:43 +05:30 committed by GitHub
parent b9d8d7b2a4
commit 86ce4d7328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 29 additions and 163 deletions

View file

@ -1,8 +1,4 @@
local blacklist_drop = {
"default:pick_wood",
"default:sword_wood",
"default:ax_wood"
}
local blacklist_drop = {}
local function drop(pos, itemstack)
local it = itemstack:take_item(itemstack:get_count())
@ -10,7 +6,7 @@ local function drop(pos, itemstack)
for _, item in pairs(blacklist_drop) do
if sname == item then
minetest.log("error", "Not dropping " .. item)
minetest.log("info", "Not dropping " .. item)
return
end
end