diff options
author | webdesigner97 <Christian_D_97@gmx.de> | 2014-05-28 08:57:07 +0200 |
---|---|---|
committer | webdesigner97 <Christian_D_97@gmx.de> | 2014-05-28 08:57:07 +0200 |
commit | a4210466d30458e43377197766edefe2b9f62b2d (patch) | |
tree | b6e31a574ed94f990d320e4e3484622bf1fd2452 /streetspoles | |
parent | b9e420c4c3bf685f3a520c100a62420eeb170e24 (diff) | |
download | roads-a4210466d30458e43377197766edefe2b9f62b2d.tar roads-a4210466d30458e43377197766edefe2b9f62b2d.tar.gz roads-a4210466d30458e43377197766edefe2b9f62b2d.tar.bz2 roads-a4210466d30458e43377197766edefe2b9f62b2d.tar.xz roads-a4210466d30458e43377197766edefe2b9f62b2d.zip |
Crafts, nodeboxes, groups...
Diffstat (limited to 'streetspoles')
-rw-r--r-- | streetspoles/init.lua | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/streetspoles/init.lua b/streetspoles/init.lua index bd163b7..c136ec6 100644 --- a/streetspoles/init.lua +++ b/streetspoles/init.lua @@ -94,6 +94,7 @@ minetest.register_node(":streets:bigpole", { paramtype2 = "facedir", drawtype = "nodebox", tiles = {"streets_pole.png"}, + sunlight_propagates = true, groups = {cracky = 1, level = 2, bigpole = 1}, node_box = { type = "fixed", @@ -102,9 +103,6 @@ minetest.register_node(":streets:bigpole", { } }, on_place = minetest.rotate_node, - after_place_node = function(pos, placer, itemstack, pointed_thing) - minetest.chat_send_all(pointed_thing.name) - end, digiline = { wire = { rules = rules_pole @@ -112,17 +110,19 @@ minetest.register_node(":streets:bigpole", { } }) minetest.register_node(":streets:bigpole_edge", { + description = "Pole", drop = "streets:bigpole", paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", tiles = {"streets_pole.png"}, - groups = {cracky = 1, level = 2, not_in_creative_inventory = 1, bigpole = 1}, + sunlight_propagates = true, + groups = {cracky = 1, level = 2, bigpole = 1}, node_box = { type = "fixed", fixed = { {-0.15,-0.5,-0.15,0.15,0.15,0.15}, - {-0.15,-0.15,-0.125,0.15,0.15,-0.5} + {-0.15,-0.15,-0.15,0.15,0.15,-0.5} } }, }) @@ -133,4 +133,12 @@ minetest.register_craft({ {"","default:steel_ingot",""}, {"","default:steel_ingot",""} } +}) +minetest.register_craft({ + output = "streets:bigpole_edge 3", + recipe = { + {"","",""}, + {"streets:bigpole","streets:bigpole",""}, + {"streets:bigpole","",""} + } })
\ No newline at end of file |