summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-12-30 14:58:59 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-12-30 14:58:59 +0000
commita0d975510ed93ddc822b991c7c7011d675b098e7 (patch)
tree456bdbec0e13926e9c990ca12fddefb3078b4905
parentda4ea0d5e3a10478a390af283c114fb85505160b (diff)
add mob fence to keep in unruly mobs (2 high collisionbox)
-rw-r--r--crafts.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/crafts.lua b/crafts.lua
index 7257388..c681946 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -121,3 +121,18 @@ minetest.register_craft({
{"mobs:leather", "default:steel_ingot", "mobs:leather"},
}
})
+
+-- mob fence (looks like normal fence but collision is 2 high)
+default.register_fence("mobs:fence_wood", {
+ description = S("Mob Fence"),
+ texture = "default_wood.png",
+ material = "default:fence_wood",
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults(),
+ collision_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5, -0.5, -0.5, 0.5, 1.9, 0.5},
+ },
+ },
+})