mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
add mob fence to keep in unruly mobs (2 high collisionbox)
This commit is contained in:
parent
da4ea0d5e3
commit
a0d975510e
15
crafts.lua
15
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},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user