summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebdesigner97 <Christian_D_97@gmx.de>2013-10-16 09:59:39 +0200
committerwebdesigner97 <Christian_D_97@gmx.de>2013-10-16 09:59:39 +0200
commitfe7607750f24d1ee8daa38d648fc39e056ef6779 (patch)
treecccbebef5821095f6c4ae4c99cb9bfdca6d703fe
parent7e72af629252db26347a5248c9fdd370739dd16d (diff)
downloadroads-fe7607750f24d1ee8daa38d648fc39e056ef6779.tar
roads-fe7607750f24d1ee8daa38d648fc39e056ef6779.tar.gz
roads-fe7607750f24d1ee8daa38d648fc39e056ef6779.tar.bz2
roads-fe7607750f24d1ee8daa38d648fc39e056ef6779.tar.xz
roads-fe7607750f24d1ee8daa38d648fc39e056ef6779.zip
Finished code
-rw-r--r--roadsigns/signs.lua16
-rw-r--r--roadsigns/workshop.lua9
2 files changed, 19 insertions, 6 deletions
diff --git a/roadsigns/signs.lua b/roadsigns/signs.lua
index 0b01ff5..0992adf 100644
--- a/roadsigns/signs.lua
+++ b/roadsigns/signs.lua
@@ -21,7 +21,7 @@ minetest.register_node(":streets:sign_blank",{
streets = {
signworkshop = {
recipe = {"default:steel_ingot","","",""},
- time = 5
+ time = 3
}
}
})
@@ -48,7 +48,7 @@ minetest.register_node(":streets:sign_lava",{
streets = {
signworkshop = {
recipe = {"streets:sign_blank","bucket:bucket_lava","",""},
- time = 7
+ time = 5
}
}
})
@@ -72,6 +72,12 @@ minetest.register_node(":streets:sign_water",{
sunlight_propagates = true,
selection_box = {
type = "wallmounted"
+ },
+ streets = {
+ signworkshop = {
+ recipe = {"streets:sign_blank","bucket:bucket_water","",""},
+ time = 5
+ }
}
})
@@ -94,5 +100,11 @@ minetest.register_node(":streets:sign_construction",{
sunlight_propagates = true,
selection_box = {
type = "wallmounted"
+ },
+ streets = {
+ signworkshop = {
+ recipe = {"streets:sign_blank","default:dirt","",""},
+ time = 5
+ }
}
}) \ No newline at end of file
diff --git a/roadsigns/workshop.lua b/roadsigns/workshop.lua
index 5ee1af5..e5dc0d6 100644
--- a/roadsigns/workshop.lua
+++ b/roadsigns/workshop.lua
@@ -31,14 +31,15 @@ local forms = {
"list[context;streets:signworkshop_select;6,1;1,1]",
"label[5.8,2.5;Output:]",
"list[context;streets:signworkshop_output;6,3;1,1]",
- "list[current_player;main;2,6;8,4]",
- "label[8,4;Please wait...]",
+ "list[current_player;main;2,6;8,4]"
+ --
}
}
minetest.register_node(":streets:signworkshop",{
description = "Sign workshop",
- tiles = {},
+ tiles = {"streets_signworkshop_top.png","streets_signworkshop_bottom.png","streets_signworkshop_side.png","streets_signworkshop_side.png","streets_signworkshop_side.png","streets_signworkshop_front.png"},
groups = {cracky = 1, level = 2},
+ paramtype2 = "facedir",
after_place_node = function(pos)
minetest.get_meta(pos):set_string("formspec",table.concat(forms.inactive))
local meta = minetest.get_meta(pos)
@@ -120,7 +121,7 @@ minetest.register_node(":streets:signworkshop",{
if need[1].name == has[1].name and need[2].name == has[2].name and need[3].name == has[3].name and need[4].name == has[4].name then
meta:set_string("infotext","Sign workshop working")
meta:set_string("idle","n")
- meta:set_string("formspec",table.concat(forms.active))
+ meta:set_string("formspec",table.concat(forms.active) .. "label[8,4;Please wait " .. def.time .. " seconds...]")
-- Clear input
inv:set_list("streets:signworkshop_input",{"","","",""})
minetest.after(def.time,function()