forked from nalc/homedecor_modpack
add cobwebs
This commit is contained in:
parent
e0e78cafbf
commit
0202d3ed5e
@ -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" }
|
||||
},
|
||||
})
|
||||
|
@ -11,6 +11,10 @@ homedecor = {}
|
||||
|
||||
homedecor.debug = 0
|
||||
|
||||
-- detail level for roofing slopes and also cobwebs
|
||||
|
||||
homedecor.detail_level = 16
|
||||
|
||||
homedecor.modpath = minetest.get_modpath("homedecor")
|
||||
homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
||||
|
||||
|
@ -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
|
||||
})
|
||||
|
||||
|
@ -4,8 +4,6 @@ local S = homedecor.gettext
|
||||
|
||||
-- Corner shingle nodes, courtesy Bas080
|
||||
|
||||
homedecor.detail_level = 16
|
||||
|
||||
homedecor.register_outer_corner = function(modname, subname, groups, images, description)
|
||||
local slopeboxedge = {}
|
||||
local detail = homedecor.detail_level
|
||||
|
BIN
homedecor/textures/homedecor_cobweb.png
Normal file
BIN
homedecor/textures/homedecor_cobweb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 242 B |
BIN
homedecor/textures/homedecor_cobweb_inv.png
Normal file
BIN
homedecor/textures/homedecor_cobweb_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 236 B |
Loading…
Reference in New Issue
Block a user