move poles to new submod

This commit is contained in:
webdesigner97 2014-05-27 13:49:45 +02:00
parent babc61df54
commit cdce04254a
5 changed files with 59 additions and 59 deletions

View File

@ -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")

1
streetspoles/depends.txt Normal file
View File

@ -0,0 +1 @@
streetsmod

View File

@ -1,6 +1,8 @@
--[[
StreetsMod: Poles and signs
StreetsMod: Poles
]]
-- Simple pole
minetest.register_node(":streets:pole_bottom",{
description = streets.S("Pole"),
tiles = {"streets_pole.png"},
@ -67,4 +69,59 @@ minetest.register_craft({
{"","default:steel_ingot",""},
{"","default:steel_ingot",""}
}
})
-- Big pole
local rules_pole = {
{x= 0, y= 0, z=-1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y= 0, z= 1},
{x= 1, y= 1, z= 0},
{x= 1, y=-1, z= 0},
{x=-1, y= 1, z= 0},
{x=-1, y=-1, z= 0},
{x= 0, y= 1, z= 1},
{x= 0, y=-1, z= 1},
{x= 0, y= 1, z=-1},
{x= 0, y=-1, z=-1},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0}
}
minetest.register_node(":streets:bigpole", {
description = "Pole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
groups = {cracky = 1, level = 2, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
}
},
on_place = minetest.rotate_node,
digiline = {
wire = {
rules = rules_pole
}
}
})
minetest.register_node(":streets:bigpole_edge", {
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},
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}
}
},
})

View File

@ -2,8 +2,6 @@
StreetsMod: inDev Trafficlights
]]
dofile(streets.modpath .. "/../trafficlight/pole.lua")
streets.tlBox = {
--[[ Thank you, rubenwardy, for your awesome NodeboxEditor! Not perfect, but still great! ]]
{-0.1875,-0.5,0.5,0.1875,0.5,0.75}, --nodebox1

View File

@ -1,55 +0,0 @@
--[[
StreetsMod: inDev Trafficlights
]]
local rules_pole = {
{x= 0, y= 0, z=-1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y= 0, z= 1},
{x= 1, y= 1, z= 0},
{x= 1, y=-1, z= 0},
{x=-1, y= 1, z= 0},
{x=-1, y=-1, z= 0},
{x= 0, y= 1, z= 1},
{x= 0, y=-1, z= 1},
{x= 0, y= 1, z=-1},
{x= 0, y=-1, z=-1},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0}
}
minetest.register_node(":streets:bigpole", {
description = "Pole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
groups = {cracky = 1, level = 2, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
}
},
on_place = minetest.rotate_node,
digiline = {
wire = {
rules = rules_pole
}
}
})
minetest.register_node(":streets:bigpole_edge", {
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},
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}
}
},
})