adding locked stuff

This commit is contained in:
kaadmy 2015-09-29 13:32:12 -07:00
parent d01398fcd2
commit aae7624d69
3 changed files with 36 additions and 0 deletions

8
mods/locks/README.txt Normal file
View File

@ -0,0 +1,8 @@
Locks mod
=========
By Kaadmy, for Pixture
Adds locked stuff, like locked chests.
Source license: WTFPL
Asset license: WTFPL

1
mods/locks/depends.txt Normal file
View File

@ -0,0 +1 @@
default

27
mods/locks/init.lua Normal file
View File

@ -0,0 +1,27 @@
--
-- Locks mod
-- By Kaadmy, for Pixture
--
locks = {}
function locks.is_locked(pos, player)
local pos = pointed_thing.under
end
minetest.register_craftitem(
"locks:pick",
{
description = "Lock Pick",
inventory_image = "locks_pick.png",
wield_image = "locks_pick.png",
on_use = function(itemstack, user, pointed_thing)
local pos = pointed_thing.under
local meta = minetest.get_meta(pos)
end,
})