Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Danscheid authored and Christian Danscheid committed Aug 10, 2013
0 parents commit 7bda846
Show file tree
Hide file tree
Showing 85 changed files with 1,274 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asphalt/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default
streetsmod
15 changes: 15 additions & 0 deletions asphalt/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--[[
Streets Mod: All kinds of asphalt
]]
minetest.register_node(":streets:asphalt",{
description = "Asphalt",
tiles = {"streets_asphalt.png"},
groups = {cracky=3}
})

minetest.register_craft({
type = "cooking",
output = "streets:asphalt",
recipe = "default:gravel",
cooktime = 2
})
Binary file added asphalt/textures/streets_asphalt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions asphaltstairs/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default
streetsmod
56 changes: 56 additions & 0 deletions asphaltstairs/function.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
-- StreetsMod needs a special slab definition, so it needs its own register_stair_and_slab
streets.register_stair_and_slab = function(node,desc,tile,item)
minetest.register_node(":streets:"..node.."_stair",{
description = desc.."stair",
groups = {cracky = 3},
tiles = tile,
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
{-0.5, 0, 0, 0.5, 0.5, 0.5}
}
}
})
minetest.register_node(":streets:"..node.."_slab",{
description = desc.." slab",
groups = {cracky = 3},
tiles = tile,
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
}
}
})
minetest.register_craft({
output = "streets:"..node.."_stair 4",
recipe = {
{"","",item},
{"",item,item},
{item,item,item}
}
})
minetest.register_craft({
output = "streets:"..node.."_stair 4",
recipe = {
{item,"",""},
{item,item,""},
{item,item,item}
}
})
minetest.register_craft({
output = "streets:"..node.."_slab 3",
recipe = {
{"","",""},
{"","",""},
{item,item,item}
}
})
end
15 changes: 15 additions & 0 deletions asphaltstairs/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--[[
StreetsMod: These stairs are just a workaround until stairs/stairs+ and circular_saw
can work together without problems. This definetly needs an API!
]]
if streets.extendedBy.stairs == false then return end
--
dofile(minetest.get_modpath(minetest.get_current_modname()).."/function.lua")

-- Asphalt
streets.register_stair_and_slab("asphalt","Asphalt",{"streets_asphalt.png"},"streets:asphalt")
minetest.register_alias("streets:asphalt_stairs","streets:asphalt_stair")
-- Asphalt with solid line:
streets.register_stair_and_slab("asphalt_solid_line","Asphalt with solid line",{"streets_asphalt.png^streets_asphalt_solid_line.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png^streets_asphalt_solid_line.png"},"streets:asphalt_solid_line")
-- Asphalt with dashed line:
streets.register_stair_and_slab("asphalt_dashed_line","Asphalt with dashed line",{"streets_asphalt.png^streets_asphalt_dashed_line.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png^streets_asphalt_dashed_line.png"},"streets:asphalt_dashed_line")
3 changes: 3 additions & 0 deletions concretestairs/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default
streetsmod
stairs?
6 changes: 6 additions & 0 deletions concretestairs/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--[[
StreetsMod: Concrete stairs (not compatible to circular_saw
]]
if streets.extendedBy.stairs == true then
stairs.register_stair_and_slab("concrete", "streets:concrete", {cracky = 2, level = 2}, {"streets_concrete.png"}, "Concrete stair", "Concrete slab", nil)
end
3 changes: 3 additions & 0 deletions constructionarea/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default
streetsmod
wool?
70 changes: 70 additions & 0 deletions constructionarea/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
minetest.register_node(":streets:constructionfence_bottom",{
description = "Construction fence",
tiles = {"streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_bottom.png","streets_fence_bottom.png"},
groups = {cracky = 2,},
paramtype = "light",
inventory_image = "streets_fence_inv.png",
wield_image = "streets_fence_inv.png",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.1,0.5,0.0,0.1}, -- lower part
{-0.2,-0.0,-0.1,0.2,0.5,0.1} -- thing in the middle
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.1,0.5,1.0,0.1}
}
},
after_dig_node = function(pos,node,digger)
pos.y = pos.y + 1
minetest.remove_node(pos)
end,
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:constructionfence_top", param2 = minetest.dir_to_facedir(placer:get_look_dir())})
else
minetest.chat_send_player(placer:get_player_name("Not enough free space! A construction fence has a height of 2 blocks!"))
end
end
})

minetest.register_node(":streets:constructionfence_top",{
description = "Construction fence",
tiles = {"streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_top.png","streets_fence_top.png"},
groups = {cracky = 2, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
drop = "streets:constructionfence_bottom",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.1,0.5,0.0,0.1} -- upper part
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-1.5,-0.1,0.5,0.0,0.1}
}
},
after_dig_node = function(pos,node,digger)
pos.y = pos.y - 1
minetest.remove_node(pos)
end
})

minetest.register_craft({
output = "streets:constructionfence_bottom 8",
recipe = {
{"","",""},
{"","streets:sign_construction",""},
{"wool:red","wool:white","wool:red"}
}
})
Binary file added constructionarea/textures/streets_fence_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added constructionarea/textures/streets_fence_fromtop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added constructionarea/textures/streets_fence_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added constructionarea/textures/streets_fence_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions delineator/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default
streetsmod
27 changes: 27 additions & 0 deletions delineator/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--[[
StreetsMod: Delineator
]]
minetest.register_node(":streets:delineator", {
description = "Delineator",
tiles = {"streets_delineator_top.png","streets_delineator.png"},
drawtype = "nodebox",
paramtype = "light",
groups = {cracky=3, oddly_breakable_by_hand=2},
light_source = 8,
sunlight_propagates = true,
node_box = {
type = "fixed",
fixed = {
{-0.1, -0.5, -0.1, 0.1, 0.5, 0.1},
},
}
})

minetest.register_craft({
output = "streets:delineator 4",
recipe = {
{"","default:torch",""},
{"","default:stick",""},
{"","default:stick",""}
}
})
Binary file added delineator/textures/default_n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added delineator/textures/streets_delineator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added delineator/textures/streets_delineator_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions emergencyphone/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default
streetsmod
wool?
27 changes: 27 additions & 0 deletions emergencyphone/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--[[
StreetsMod: Emergency Phone
]]
if streets.extendedBy.wool == true then
minetest.register_node(":streets:emergencyphone",{
description = "Emergency Phone",
tiles = {"streets_sos_top.png","streets_sos_bottom.png","streets_sos_side.png","streets_sos_side.png","streets_sos_side.png","streets_sos_front.png"},
groups = {cracky = 3},
paramtype2 = "facedir",
light_source = 5,
on_rightclick = function(pos,node,clicker)
if clicker:is_player() and clicker:get_hp() < 6 then
clicker:set_hp(6)
minetest.log("action",clicker:get_player_name() .. " healed by emergency phone at pos (" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ")")
end
end
})
minetest.register_alias("streets:emergency_phone","streets:emergencyphone")
minetest.register_craft({
output = "streets:emergencyphone",
recipe = {
{"wool:orange","default:torch","wool:orange"},
{"wool:orange","default:apple","wool:orange"},
{"default:steel_ingot","default:diamondblock","default:steel_ingot"}
}
})
end
Binary file added emergencyphone/textures/streets_sos_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emergencyphone/textures/streets_sos_front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emergencyphone/textures/streets_sos_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emergencyphone/textures/streets_sos_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions labels/depends.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default
streetsmod
wool?
Loading

0 comments on commit 7bda846

Please sign in to comment.