mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-11 18:23:51 +01:00
26 lines
548 B
Lua
26 lines
548 B
Lua
-- Clock recipe
|
|
minetest.register_craft({
|
|
description = "Clock",
|
|
output = 'mcl_clock:clock',
|
|
groups = {not_in_creative_inventory=1},
|
|
recipe = {
|
|
{'', 'default:gold_ingot', ''},
|
|
{'default:gold_ingot', 'mesecons:redstone_dust', 'default:gold_ingot'},
|
|
{'', 'default:gold_ingot', ''}
|
|
}
|
|
})
|
|
|
|
-- Clock tool
|
|
watch.register_item("mcl_clock:clock", watch.images[1], true)
|
|
|
|
-- Faces
|
|
for a=0,63,1 do
|
|
local b = a
|
|
if b > 31 then
|
|
b = b - 32
|
|
else
|
|
b = b + 32
|
|
end
|
|
watch.register_item("mcl_clock:clock_"..tostring(a), watch.images[b+1], false)
|
|
end
|