mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Better compass preview image
This commit is contained in:
parent
a2478d80b0
commit
4a0efa36fd
1 changed files with 5 additions and 3 deletions
|
@ -39,10 +39,10 @@ for frame=0,31 do
|
|||
table.insert(images, "mcl_compass_compass.png^[verticalframe:32:"..frame)
|
||||
end
|
||||
|
||||
local i
|
||||
local stereotype_frame = 18
|
||||
for i,img in ipairs(images) do
|
||||
local inv = 1
|
||||
if i == 1 then
|
||||
if i == stereotype_frame then
|
||||
inv = 0
|
||||
end
|
||||
minetest.register_tool("mcl_compass:"..(i-1), {
|
||||
|
@ -55,10 +55,12 @@ for i,img in ipairs(images) do
|
|||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mcl_compass:1',
|
||||
output = 'mcl_compass:'..stereotype_frame,
|
||||
recipe = {
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'},
|
||||
{'', 'default:steel_ingot', ''}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_alias("mcl_compass:compass", "mcl_compass:"..stereotype_frame)
|
||||
|
|
Loading…
Reference in a new issue