summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-06-24 21:31:09 -0500
committerBrandon <brandon@bremaweb.com>2013-06-24 21:31:09 -0500
commit72b5c84eb6fe5e69a5a80afdff5b3ff158659a62 (patch)
tree3d53e1bda03b0ddb3d581442c74cd82588995a01
parent310e367c564f91f2b20ebe7cf3bfde6c17ec3b05 (diff)
fix crafting recipes
-rw-r--r--default.lua26
-rw-r--r--init.lua27
2 files changed, 18 insertions, 35 deletions
diff --git a/default.lua b/default.lua
index 555f7e3..5285967 100644
--- a/default.lua
+++ b/default.lua
@@ -1,28 +1,4 @@
-if minetest.get_modpath("default") then
- if minetest.registered_items["default:mese_crystal"] then
- minetest.register_craft({
- output = 'landrush:landclaim_b',
- recipe = {
- {'default:stone','default:steel_ingot','default:stone'},
- {'default:steel_ingot','default:mese_crystal','default:steel_ingot'},
- {'default:stone','default:steel_ingot','default:stone'}
- }
- })
- minetest.register_alias("landclaim", "landrush:landclaim_b")
- --minetest.registered_items["landrush:landclaim_b"].groups.not_in_creative_inventory = nil
- else
- minetest.register_craft({
- output = 'landrush:landclaim',
- recipe = {
- {'default:stone','default:steel_ingot','default:stone'},
- {'default:steel_ingot','default:mese','default:steel_ingot'},
- {'default:stone','default:steel_ingot','default:stone'}
- }
- })
- minetest.register_alias("landclaim", "landrush:landclaim")
- minetest.registered_items["landrush:landclaim"].groups.not_in_creative_inventory = nil
- end
-
+if minetest.get_modpath("default") then
minetest.register_node(":default:sign_wall", {
description = "Sign",
drawtype = "signlike",
diff --git a/init.lua b/init.lua
index e7fd63c..7d85041 100644
--- a/init.lua
+++ b/init.lua
@@ -265,12 +265,9 @@ end
landrush.load_claims()
-- Load now
--- In-game additions:
-function landrush.register_claimnode(node, image)
- local claimnode = minetest.get_current_modname()..":"..node
- minetest.register_node(claimnode, {
+ minetest.register_node("landrush:landclaim", {
description = "Land Rush Land Claim",
- tiles = {image},
+ tiles = {"landrush_landclaim.png"},
groups = {oddly_breakable_by_hand=2},
on_place = function(itemstack, placer, pointed_thing)
owner = landrush.get_owner(pointed_thing.above)
@@ -288,10 +285,21 @@ function landrush.register_claimnode(node, image)
end
end,
})
-end
-landrush.register_claimnode("landclaim", "landrush_landclaim.png")
-landrush.register_claimnode("landclaim_b", "landrush_landclaim.png")
+minetest.register_craft({
+ output = 'landrush:landclaim',
+ recipe = {
+ {'default:stone','default:steel_ingot','default:stone'},
+ {'default:steel_ingot','default:mese_crystal','default:steel_ingot'},
+ {'default:stone','default:steel_ingot','default:stone'}
+ }
+ })
+minetest.register_alias("landclaim", "landrush:landclaim")
+minetest.register_alias("landrush:landclaim_b","landrush:landclaim")
+minetest.registered_items["landrush:landclaim"].groups.not_in_creative_inventory = nil
+
+--landrush.register_claimnode("landclaim", "landrush_landclaim.png")
+--landrush.register_claimnode("landclaim_b", "landrush_landclaim.png")
minetest.register_entity("landrush:showarea",{
on_activate = function(self, staticdata, dtime_s)
@@ -370,11 +378,10 @@ if ( minetest.get_modpath("money2") ) then
dofile(path.."/landsale.lua")
end
-
minetest.after(0, function ()
-dofile(path.."/bucket.lua")
dofile(path.."/default.lua")
+dofile(path.."/bucket.lua")
dofile(path.."/doors.lua")
dofile(path.."/fire.lua")
dofile(path.."/chatcommands.lua")