Update signs.lua
Updated page to conform with the new sign register
This commit is contained in:
parent
ead64398f9
commit
76ad13c097
@ -1,130 +1,8 @@
|
|||||||
minetest.register_node(":streets:sign_blank",{
|
-- example: streets.workshop.register_sign(nodename, desc, img, recipe, time)
|
||||||
description = streets.S("Empty sign"),
|
streets.workshop.register_sign(":streets:sign_blank", treets.S("Empty sign"), "streets_sign_back.png", {"default:steel_ingot","","",""}, 3)
|
||||||
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","","",""},
|
|
||||||
time = 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
after_place_node = function(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
|
|
||||||
meta:set_string("infotext", streets.S("Empty Sign"))
|
streets.workshop.register_sign(":streets:sign_lava", streets.S("Warning sign (lava)"), "streets_sign_lava.png", {"streets:sign_blank","bucket:bucket_lava","",""}, 5)
|
||||||
end
|
|
||||||
})
|
|
||||||
minetest.register_node(":streets:sign_lava",{
|
|
||||||
description = streets.S("Warning sign (lava)"),
|
|
||||||
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}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "wallmounted",
|
|
||||||
walkable = false,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
selection_box = {
|
|
||||||
type = "wallmounted"
|
|
||||||
},
|
|
||||||
streets = {
|
|
||||||
signworkshop = {
|
|
||||||
recipe = {"streets:sign_blank","bucket:bucket_lava","",""},
|
|
||||||
time = 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
after_place_node = function(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
|
|
||||||
meta:set_string("infotext", streets.S("Warning: Careful of lava"))
|
streets.workshop.register_sign(":streets:sign_water", streets.S("Warning sign (water)"), "streets_sign_water.png", {"streets:sign_blank","bucket:bucket_water","",""}, 5)
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":streets:sign_water",{
|
streets.workshop.register_sign(":streets:sign_construction", streets.S("Warning sign (Construction area)"), "streets_sign_construction.png", {"streets:sign_blank","default:dirt","",""}, 5)
|
||||||
description = streets.S("Warning sign (water)"),
|
|
||||||
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}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "wallmounted",
|
|
||||||
walkable = false,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
selection_box = {
|
|
||||||
type = "wallmounted"
|
|
||||||
},
|
|
||||||
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
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":streets:sign_construction",{
|
|
||||||
description = streets.S("Warning sign (Construction area)"),
|
|
||||||
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}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "wallmounted",
|
|
||||||
walkable = false,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
selection_box = {
|
|
||||||
type = "wallmounted"
|
|
||||||
},
|
|
||||||
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
|
|
||||||
})
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user