Initial commit of saplings mod

master
Glenn Engelbart 2013-10-18 20:41:24 -05:00
parent 51f05ac72a
commit 9d515c559b
5 changed files with 66 additions and 0 deletions

1
saplings/depends.txt Normal file
View File

@ -0,0 +1 @@
default

65
saplings/init.lua Normal file
View File

@ -0,0 +1,65 @@
minetest.register_node("saplings:sapling_top", {
description = "SaplingTop",
drawtype = "plantlike",
visual_scale = 1,
paramtype = "light",
tiles = {"sapling16xa.png"},
inventory_image = "sapling16xa.png",
walkable = false,
groups = {
snappy=3,
flammable=2,
attached_node=1--,
--not_in_creative_inventory=1
},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16},
},
--drop = "ferns:fern_01",
})
minetest.register_node("saplings:sapling_middle", {
description = "SaplingMiddle",
drawtype = "plantlike",
visual_scale = 1,
paramtype = "light",
tiles = {"sapling16xb.png"},
inventory_image = "sapling16xb.png",
walkable = false,
groups = {
snappy=3,
flammable=2,
attached_node=1--,
--not_in_creative_inventory=1
},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16},
},
--drop = "ferns:fern_01",
})
minetest.register_node("saplings:sapling_bottom", {
description = "SaplingBottom",
drawtype = "plantlike",
visual_scale = 1,
paramtype = "light",
tiles = {"sapling16xc.png"},
inventory_image = "sapling16xc.png",
walkable = false,
groups = {
snappy=3,
flammable=2,
attached_node=1--,
--not_in_creative_inventory=1
},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16},
},
--drop = "ferns:fern_01",
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B