diff --git a/mods/locks/init.lua b/mods/locks/init.lua index 73440fc..dd63dd9 100644 --- a/mods/locks/init.lua +++ b/mods/locks/init.lua @@ -65,12 +65,41 @@ minetest.register_tool( end, }) +minetest.register_craftitem( + "locks:lock", + { + description = "Lock", + + inventory_image = "locks_lock.png", + wield_image = "locks_lock.png", + }) + +minetest.register_craft( + { + output = "locks:pick", + recipe = { + {"", "", "default:ingot_steel"}, + {"", "default:stick", ""}, + {"default:stick", "", ""}, + }, + }) + +minetest.register_craft( + { + output = "locks:lock", + recipe = { + {"", "default:ingot_steel", ""}, + {"default:ingot_steel", "", "default:ingot_steel"}, + {"group:planks", "group:planks", "group:planks"}, + }, + }) + minetest.register_node( "locks:chest", { description = "Locked Chest", tiles ={"default_chest_top.png", "default_chest_top.png", "default_chest_sides.png", - "default_chest_sides.png", "default_chest_sides.png", "default_chest_front.png^default_ingot_steel.png"}, + "default_chest_sides.png", "default_chest_sides.png", "locks_chest_front.png"}, paramtype2 = "facedir", groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2}, is_ground_content = false, @@ -129,4 +158,12 @@ minetest.register_node( return inv:is_empty("main") and locks.is_owner(meta, player) end, on_blast = function() end, - }) \ No newline at end of file + }) + +minetest.register_craft( + { + output = "locks:chest", + type = "shapeless", + recipe = {"default:chest", "locks:lock"}, + }) + diff --git a/mods/locks/textures/locks_lock.png b/mods/locks/textures/locks_lock.png new file mode 100644 index 0000000..038b8fc Binary files /dev/null and b/mods/locks/textures/locks_lock.png differ diff --git a/mods/locks/textures/locks_lock.xcf b/mods/locks/textures/locks_lock.xcf new file mode 100644 index 0000000..36e748b Binary files /dev/null and b/mods/locks/textures/locks_lock.xcf differ