diff --git a/internal.lua b/internal.lua index ba630bc..4f8cfe7 100644 --- a/internal.lua +++ b/internal.lua @@ -29,7 +29,7 @@ local function on_place(itemstack, placer, pointed_thing) end -minetest.register_node(":compass_rose:decal", { +minetest.register_node("compass_rose:decal", { description = "Compass rose decal", drawtype = "nodebox", use_texture_alpha = "blend", @@ -63,4 +63,16 @@ minetest.register_node(":compass_rose:decal", { groups = {choppy = 3, dig_immediate = 2}, on_place = on_place, on_rotate = false, -- probably disable rotations +}) + +if core.get_modpath("alphabet") then + minetest.register_craft({ + type = "shaped", + output = "compass_rose:decal", + recipe = { + {"", "alphabet:n", ""}, + {"alphabet:w", "default:stone_block", "alphabet:e"}, + {"", "alphabet:s", ""}, + } }) +end diff --git a/mod.conf b/mod.conf index b9cda29..02dabfa 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,5 @@ name = compass_rose description = Adds a compass rose decal. author = whosit -title = Compass rose decal \ No newline at end of file +title = Compass rose decal +optional_depends = alphabet \ No newline at end of file