forked from your-land-mirror/compass_rose
add recipe (optionally depends on alphabet mod)
This commit is contained in:
parent
4e70957ae1
commit
2538c0beda
14
internal.lua
14
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
|
||||
|
Loading…
Reference in New Issue
Block a user