summaryrefslogtreecommitdiff
path: root/roadsigns
diff options
context:
space:
mode:
authorwebdesigner97 <Christian_D_97@gmx.de>2014-05-27 13:49:45 +0200
committerwebdesigner97 <Christian_D_97@gmx.de>2014-05-27 13:49:45 +0200
commitcdce04254a5fb8a7813fdf155cc0c8874a353e30 (patch)
treea13426fe5c7b039b514d63c26a731a272bc5e4fd /roadsigns
parentbabc61df54ce98a5c87f182dab271586d6ad75ab (diff)
downloadroads-cdce04254a5fb8a7813fdf155cc0c8874a353e30.tar
roads-cdce04254a5fb8a7813fdf155cc0c8874a353e30.tar.gz
roads-cdce04254a5fb8a7813fdf155cc0c8874a353e30.tar.bz2
roads-cdce04254a5fb8a7813fdf155cc0c8874a353e30.tar.xz
roads-cdce04254a5fb8a7813fdf155cc0c8874a353e30.zip
move poles to new submod
Diffstat (limited to 'roadsigns')
-rw-r--r--roadsigns/init.lua1
-rw-r--r--roadsigns/pole.lua70
2 files changed, 0 insertions, 71 deletions
diff --git a/roadsigns/init.lua b/roadsigns/init.lua
index 38e8692..96646b3 100644
--- a/roadsigns/init.lua
+++ b/roadsigns/init.lua
@@ -1,6 +1,5 @@
--[[
StreetsMod: Poles and signs
]]
-dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/pole.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/signs.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/workshop.lua") \ No newline at end of file
diff --git a/roadsigns/pole.lua b/roadsigns/pole.lua
deleted file mode 100644
index 5d68398..0000000
--- a/roadsigns/pole.lua
+++ /dev/null
@@ -1,70 +0,0 @@
---[[
- StreetsMod: Poles and signs
-]]
-minetest.register_node(":streets:pole_bottom",{
- description = streets.S("Pole"),
- tiles = {"streets_pole.png"},
- groups = {cracky=2},
- inventory_image = "streets_pole_inv.png",
- wield_image = "streets_pole_inv.png",
- paramtype = "light",
- paramtype2 = "facedir",
- drawtype = "nodebox",
- node_box = {
- type = "fixed",
- fixed = {
- {-0.1,-0.5,-0.5,0.1,0.5,-0.4},
- {-0.125,-0.5,-0.525,0.125,-0.3,-0.375}
- }
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.1,-0.5,-0.5,0.1,0.5,-0.4}
- }
- },
- after_place_node = function(pos,placer,itemstack)
- pos.y = pos.y +1
- if minetest.get_node(pos).name == "air" then
- minetest.add_node(pos,{name = "streets:pole_top", param2 = minetest.dir_to_facedir(placer:get_look_dir())})
- else
- minetest.chat_send_player(placer:get_player_name(),"Not enough free space! A pole has a height of 2 blocks!")
- pos.y = pos.y -1
- minetest.remove_node(pos)
- end
- end,
- after_dig_node = function(pos, oldnode, oldmetadata, digger)
- pos.y = pos.y +1
- if minetest.get_node(pos).name == "streets:pole_top" then
- minetest.remove_node(pos)
- end
- end
-})
-
-minetest.register_node(":streets:pole_top",{
- description = streets.S("Y u no play minetest without cheating?"),
- tiles = {"streets_pole.png"},
- groups = {cracky=2,not_in_creative_inventory=1},
- paramtype = "light",
- paramtype2 = "facedir",
- drawtype = "nodebox",
- drop = "",
- can_dig = function()
- return false
- end,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.1,-0.5,-0.5,0.1,0.5,-0.4}
- }
- }
-})
-
-minetest.register_craft({
- output = "streets:pole_bottom 3",
- recipe = {
- {"","default:steel_ingot",""},
- {"","default:steel_ingot",""},
- {"","default:steel_ingot",""}
- }
-}) \ No newline at end of file