summaryrefslogtreecommitdiff
path: root/crafts.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-07-18 10:13:19 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-07-18 10:13:19 +0100
commit63c9812dad43adfb5736408f48a61ff02267d9ed (patch)
tree79178e548dd9fe6fe89e3ddbc320be18458a5663 /crafts.lua
parentf6b5effe09d3116c9e1231eaa38f7f9ab2535eb9 (diff)
new line_of_sight and fence_top added
Diffstat (limited to 'crafts.lua')
-rw-r--r--crafts.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/crafts.lua b/crafts.lua
index 0bf42ad..0460f89 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -146,6 +146,37 @@ default.register_fence("mobs:fence_wood", {
},
})
+-- mob fence top (has enlarged collisionbox to stop mobs getting over)
+ minetest.register_node("mobs:fence_top", {
+ description = S("Mob Fence Top"),
+ drawtype = "nodebox",
+ tiles = {"default_wood.png"},
+ paramtype = "light",
+ is_ground_content = false,
+ groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
+ sounds = default.node_sound_wood_defaults(),
+ node_box = {
+ type = "fixed",
+ fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2},
+ },
+ collision_box = {
+ type = "fixed",
+ fixed = {-0.4, -1.5, -0.4, 0.4, 0, 0.4},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.4, -1.5, -0.4, 0.4, 0, 0.4},
+ },
+})
+
+minetest.register_craft({
+ output = "mobs:fence_top 12",
+ recipe = {
+ {"group:wood", "group:wood", "group:wood"},
+ {"", "default:fence_wood", ""},
+ }
+})
+
-- items that can be used as fuel
minetest.register_craft({
type = "fuel",
@@ -182,3 +213,9 @@ minetest.register_craft({
recipe = "mobs:fence_wood",
burntime = 7,
})
+
+minetest.register_craft({
+ type = "fuel",
+ recipe = "mobs:fence_top",
+ burntime = 2,
+})