add steel fence (derived from steel bars)
This commit is contained in:
parent
6670422de9
commit
12842bb09d
@ -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"},
|
||||
},
|
||||
})
|
||||
|
20
init.lua
20
init.lua
@ -734,6 +734,26 @@ if minetest.setting_getbool("gloopblocks_lavacooling") ~= false then
|
||||
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")
|
||||
|
||||
print(S("Gloopblocks Loaded!"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user