mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +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)
|
table.insert(images, "mcl_compass_compass.png^[verticalframe:32:"..frame)
|
||||||
end
|
end
|
||||||
|
|
||||||
local i
|
local stereotype_frame = 18
|
||||||
for i,img in ipairs(images) do
|
for i,img in ipairs(images) do
|
||||||
local inv = 1
|
local inv = 1
|
||||||
if i == 1 then
|
if i == stereotype_frame then
|
||||||
inv = 0
|
inv = 0
|
||||||
end
|
end
|
||||||
minetest.register_tool("mcl_compass:"..(i-1), {
|
minetest.register_tool("mcl_compass:"..(i-1), {
|
||||||
|
@ -55,10 +55,12 @@ for i,img in ipairs(images) do
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mcl_compass:1',
|
output = 'mcl_compass:'..stereotype_frame,
|
||||||
recipe = {
|
recipe = {
|
||||||
{'', 'default:steel_ingot', ''},
|
{'', 'default:steel_ingot', ''},
|
||||||
{'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'},
|
{'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'},
|
||||||
{'', 'default:steel_ingot', ''}
|
{'', 'default:steel_ingot', ''}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("mcl_compass:compass", "mcl_compass:"..stereotype_frame)
|
||||||
|
|
Loading…
Reference in a new issue