mod uploaded

This commit is contained in:
Sokomine 2012-10-05 19:04:51 +02:00
parent de9d949a57
commit 4e35421eb2
7 changed files with 35 additions and 0 deletions

35
init.lua Normal file
View File

@ -0,0 +1,35 @@
minetest.register_node("compass:compass", {
description = "Compass",
tiles = {"compass_side_top.png", "compass_side_bottom.png", "compass_side_w.png",
"compass_side_e.png", "compass_side_s.png", "compass_side_n.png"},
groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3},
light_source = 14, -- so that you can see it in the dark
after_place_node = function(pos, placer)
local meta = minetest.env:get_meta(pos);
meta:set_string("infotext", "Compass at "..
tostring( math.floor( pos.x ))..","..
tostring( math.floor( pos.y ))..","..
tostring( math.floor( pos.z )).." or "..
tostring( math.floor( pos.z )).."N "..
tostring( math.floor( pos.x )).."E "..
tostring( math.floor( pos.y )).."H "..
"("..
(placer:get_player_name() or "")..")")
end,
})
minetest.register_craft({
output = "compass:compass",
recipe = { { "default:steel_ingot" },
{ "default:torch" },
{ "default:wood" },
} });

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

BIN
textures/compass_side_e.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

BIN
textures/compass_side_n.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
textures/compass_side_s.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

BIN
textures/compass_side_w.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B