forked from minetest-mods/streets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christian Danscheid
authored and
Christian Danscheid
committed
Aug 10, 2013
0 parents
commit 7bda846
Showing
85 changed files
with
1,274 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
default | ||
streetsmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
default | ||
streetsmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default | ||
streetsmod | ||
stairs? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default | ||
streetsmod | ||
wool? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
} | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
default | ||
streetsmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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",""} | ||
} | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default | ||
streetsmod | ||
wool? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default | ||
streetsmod | ||
wool? |
Oops, something went wrong.