adding locked stuff
This commit is contained in:
parent
d01398fcd2
commit
aae7624d69
8
mods/locks/README.txt
Normal file
8
mods/locks/README.txt
Normal 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
1
mods/locks/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
default
|
27
mods/locks/init.lua
Normal file
27
mods/locks/init.lua
Normal 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,
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user