aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOch Noe <och_noe@forksworld.de>2021-07-28 13:08:42 +0200
committerOch Noe <och_noe@forksworld.de>2021-07-28 13:08:42 +0200
commite21568c31aafd2ee2900888de1d3fbe14d18a616 (patch)
tree08f45c6fa9511503df4c8d4f3014438f8ebd5ebe
parent07add6dd15763d007c9dc8aa67add43d106a844c (diff)
downloadmoreblocks-e21568c31aafd2ee2900888de1d3fbe14d18a616.tar.gz
moreblocks-e21568c31aafd2ee2900888de1d3fbe14d18a616.tar.bz2
moreblocks-e21568c31aafd2ee2900888de1d3fbe14d18a616.zip
1/16 slabs are now train compatible
-rw-r--r--stairsplus/microblocks.lua11
-rw-r--r--stairsplus/slabs.lua3
2 files changed, 14 insertions, 0 deletions
diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua
index 0e41936..49e4dcd 100644
--- a/stairsplus/microblocks.lua
+++ b/stairsplus/microblocks.lua
@@ -158,3 +158,14 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
})
end
+
+
+
+
+
+
+
+
+
+
+
diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua
index ea9dbc5..f45a2ca 100644
--- a/stairsplus/slabs.lua
+++ b/stairsplus/slabs.lua
@@ -96,6 +96,9 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.groups = stairsplus:prepare_groups(fields.groups)
+ if alternate == "_1" then
+ def.groups.not_blocking_trains = 1
+ end
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":slab_" .. fields.drop .. alternate
end