diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-07-18 10:13:19 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-07-18 10:13:19 +0100 |
commit | 63c9812dad43adfb5736408f48a61ff02267d9ed (patch) | |
tree | 79178e548dd9fe6fe89e3ddbc320be18458a5663 /crafts.lua | |
parent | f6b5effe09d3116c9e1231eaa38f7f9ab2535eb9 (diff) |
new line_of_sight and fence_top added
Diffstat (limited to 'crafts.lua')
-rw-r--r-- | crafts.lua | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -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, +}) |