roads/roadsigns/signs.lua

131 lines
3.1 KiB
Lua
Raw Normal View History

2013-10-15 01:32:37 -07:00
minetest.register_node(":streets:sign_blank",{
description = streets.S("Empty sign"),
2013-10-15 01:32:37 -07:00
tiles = {"streets_sign_back.png"},
inventory_image = "streets_sign_back.png",
wield_image = "streets_sign_back.png",
groups = {snappy = 1,attached_node = 1},
drawtype = "nodebox",
node_box = {
type = "wallmounted",
fixed = {
{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
}
},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = {
type = "wallmounted"
},
streets = {
signworkshop = {
recipe = {"default:steel_ingot","","",""},
2013-10-16 00:59:39 -07:00
time = 3
2013-10-15 01:32:37 -07:00
}
},
after_place_node = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", streets.S("Empty Sign"))
end
2013-10-15 01:32:37 -07:00
})
2013-10-14 03:02:09 -07:00
minetest.register_node(":streets:sign_lava",{
description = streets.S("Warning sign (lava)"),
2013-10-14 03:02:09 -07:00
tiles = {"streets_sign_lava.png"},
inventory_image = "streets_sign_lava.png",
wield_image = "streets_sign_lava.png",
groups = {snappy = 1,attached_node = 1},
drawtype = "nodebox",
node_box = {
type = "wallmounted",
fixed = {
{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
2013-08-10 10:23:52 -07:00
}
2013-10-14 03:02:09 -07:00
},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = {
type = "wallmounted"
2013-10-15 01:32:37 -07:00
},
streets = {
signworkshop = {
recipe = {"streets:sign_blank","bucket:bucket_lava","",""},
2013-10-16 00:59:39 -07:00
time = 5
2013-08-10 10:23:52 -07:00
}
},
after_place_node = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", streets.S("Warning: Careful of lava"))
end
2013-10-14 03:02:09 -07:00
})
2013-08-10 10:23:52 -07:00
2013-10-14 03:02:09 -07:00
minetest.register_node(":streets:sign_water",{
description = streets.S("Warning sign (water)"),
2013-10-14 03:02:09 -07:00
tiles = {"streets_sign_water.png"},
inventory_image = "streets_sign_water.png",
wield_image = "streets_sign_water.png",
groups = {snappy = 1,attached_node = 1},
drawtype = "nodebox",
node_box = {
type = "wallmounted",
fixed = {
{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
2013-08-10 10:23:52 -07:00
}
2013-10-14 03:02:09 -07:00
},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = {
type = "wallmounted"
2013-10-16 00:59:39 -07:00
},
streets = {
signworkshop = {
recipe = {"streets:sign_blank","bucket:bucket_water","",""},
time = 5
}
},
after_place_node = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", streets.S("Warning: Water nearby"))
end
2013-10-14 03:02:09 -07:00
})
2013-08-10 10:23:52 -07:00
2013-10-14 03:02:09 -07:00
minetest.register_node(":streets:sign_construction",{
description = streets.S("Warning sign (Construction area)"),
2013-10-14 03:02:09 -07:00
tiles = {"streets_sign_construction.png"},
inventory_image = "streets_sign_construction.png",
wield_image = "streets_sign_construction.png",
groups = {snappy = 1,attached_node = 1},
drawtype = "nodebox",
node_box = {
type = "wallmounted",
fixed = {
{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
2013-08-10 10:23:52 -07:00
}
2013-10-14 03:02:09 -07:00
},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = {
type = "wallmounted"
2013-10-16 00:59:39 -07:00
},
streets = {
signworkshop = {
recipe = {"streets:sign_blank","default:dirt","",""},
time = 5
}
},
after_place_node = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", streets.S("Warning: Construction area, possible deep excavations"))
end
})