forked from minetest-mods/technic
Fix crafting recipes and some code style.
This commit is contained in:
parent
2f23f71652
commit
f4302fcbfa
|
@ -1,8 +1,8 @@
|
||||||
--Minetest 0.4.6 mod: concrete
|
--Minetest 0.4.7 mod: concrete
|
||||||
--(c) 2013 by RealBadAngel <mk@realbadangel.pl>
|
--(c) 2013 by RealBadAngel <mk@realbadangel.pl>
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = ':technic:rebar 6',
|
output = 'technic:rebar 6',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'','', 'default:steel_ingot'},
|
{'','', 'default:steel_ingot'},
|
||||||
{'','default:steel_ingot',''},
|
{'','default:steel_ingot',''},
|
||||||
|
@ -11,7 +11,7 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = ':technic:concrete 5',
|
output = 'technic:concrete 5',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:stone','technic:rebar','default:stone'},
|
{'default:stone','technic:rebar','default:stone'},
|
||||||
{'technic:rebar','default:stone','technic:rebar'},
|
{'technic:rebar','default:stone','technic:rebar'},
|
||||||
|
@ -20,14 +20,14 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = ':technic:concrete_post_platform 6',
|
output = 'technic:concrete_post_platform 6',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'technic:concrete','technic:concrete_post','technic:concrete'},
|
{'technic:concrete','technic:concrete_post','technic:concrete'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = ':technic:concrete_post 12',
|
output = 'technic:concrete_post 12',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:stone','technic:rebar','default:stone'},
|
{'default:stone','technic:rebar','default:stone'},
|
||||||
{'default:stone','technic:rebar','default:stone'},
|
{'default:stone','technic:rebar','default:stone'},
|
||||||
|
@ -344,7 +344,7 @@ dig_post_with_platform = function (pos,oldnode,oldmetadata)
|
||||||
print(dump(x1))
|
print(dump(x1))
|
||||||
oldmetadata.fields["platform"]="0"
|
oldmetadata.fields["platform"]="0"
|
||||||
local rule=make_post_rule_number(x1,x2,y1,y2,z1,z2,0)
|
local rule=make_post_rule_number(x1,x2,y1,y2,z1,z2,0)
|
||||||
print(dump(rule))
|
--print(dump(rule))
|
||||||
oldnode.name="technic:concrete_post"..rule
|
oldnode.name="technic:concrete_post"..rule
|
||||||
minetest.env:set_node(pos,oldnode)
|
minetest.env:set_node(pos,oldnode)
|
||||||
meta = minetest.env:get_meta(pos)
|
meta = minetest.env:get_meta(pos)
|
||||||
|
@ -462,6 +462,7 @@ check_post_connections = function(pos,mode)
|
||||||
tempz2=mode
|
tempz2=mode
|
||||||
end
|
end
|
||||||
pos1.z=pos1.z+1
|
pos1.z=pos1.z+1
|
||||||
|
|
||||||
if mode==1 then
|
if mode==1 then
|
||||||
meta=minetest.env:get_meta(pos)
|
meta=minetest.env:get_meta(pos)
|
||||||
meta:set_int("x1",tempx1)
|
meta:set_int("x1",tempx1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user