add cobwebs

This commit is contained in:
Vanessa Ezekowitz 2014-08-12 12:11:12 -04:00
parent e0e78cafbf
commit 0202d3ed5e
6 changed files with 31 additions and 2 deletions

View File

@ -2386,3 +2386,11 @@ minetest.register_craft( {
}, },
}) })
minetest.register_craft( {
output = "homedecor:cobweb 5",
recipe = {
{ "farming:string", "", "farming:string" },
{ "", "farming:string", "" },
{ "farming:string", "", "farming:string" }
},
})

View File

@ -11,6 +11,10 @@ homedecor = {}
homedecor.debug = 0 homedecor.debug = 0
-- detail level for roofing slopes and also cobwebs
homedecor.detail_level = 16
homedecor.modpath = minetest.get_modpath("homedecor") homedecor.modpath = minetest.get_modpath("homedecor")
homedecor.intllib_modpath = minetest.get_modpath("intllib") homedecor.intllib_modpath = minetest.get_modpath("intllib")

View File

@ -922,3 +922,22 @@ minetest.register_node("homedecor:trash_can", {
} }
}) })
minetest.register_node("homedecor:cobweb", {
description = "Cobweb",
drawtype = "plantlike",
tiles = { "homedecor_cobweb.png" },
inventory_image = "homedecor_cobweb_inv.png",
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
visual_scale = 1.189,
groups = { snappy = 3 },
after_place_node = function(pos, placer, itemstack, pointed_thing)
minetest.add_node(pos, { name = "homedecor:cobweb", param2 = 0 })
end
})

View File

@ -4,8 +4,6 @@ local S = homedecor.gettext
-- Corner shingle nodes, courtesy Bas080 -- Corner shingle nodes, courtesy Bas080
homedecor.detail_level = 16
homedecor.register_outer_corner = function(modname, subname, groups, images, description) homedecor.register_outer_corner = function(modname, subname, groups, images, description)
local slopeboxedge = {} local slopeboxedge = {}
local detail = homedecor.detail_level local detail = homedecor.detail_level

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B