add steel fence (derived from steel bars)

This commit is contained in:
Vanessa Ezekowitz 2015-10-12 03:14:54 -04:00
parent 6670422de9
commit 12842bb09d
2 changed files with 27 additions and 0 deletions

View File

@ -358,3 +358,10 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = "gloopblocks:fence_steel 1",
recipe = {
{"xpanes:bar", "xpanes:bar", "xpanes:bar"},
{"xpanes:bar", "xpanes:bar", "xpanes:bar"},
},
})

View File

@ -734,6 +734,26 @@ if minetest.setting_getbool("gloopblocks_lavacooling") ~= false then
end end
end end
local fence_texture =
"default_fence_overlay.png^default_steel_block.png^default_fence_overlay.png^[makealpha:255,126,126"
minetest.register_node("gloopblocks:fence_steel", {
description = "Steel Fence",
drawtype = "fencelike",
tiles = {"default_steel_block.png"},
inventory_image = fence_texture,
wield_image = fence_texture,
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {choppy = 2, oddly_breakable_by_hand = 2 },
sounds = default.node_sound_stone_defaults(),
})
dofile(minetest.get_modpath("gloopblocks").."/crafts.lua") dofile(minetest.get_modpath("gloopblocks").."/crafts.lua")
print(S("Gloopblocks Loaded!")) print(S("Gloopblocks Loaded!"))