From 9d515c559b687c2ea1c6212d4f19a3e3fd99c5f1 Mon Sep 17 00:00:00 2001 From: Glenn Engelbart Date: Fri, 18 Oct 2013 20:41:24 -0500 Subject: [PATCH] Initial commit of saplings mod --- saplings/depends.txt | 1 + saplings/init.lua | 65 ++++++++++++++++++++++++++++++ saplings/textures/sapling16xa.png | Bin 0 -> 578 bytes saplings/textures/sapling16xb.png | Bin 0 -> 433 bytes saplings/textures/sapling16xc.png | Bin 0 -> 217 bytes 5 files changed, 66 insertions(+) create mode 100644 saplings/depends.txt create mode 100644 saplings/init.lua create mode 100644 saplings/textures/sapling16xa.png create mode 100644 saplings/textures/sapling16xb.png create mode 100644 saplings/textures/sapling16xc.png diff --git a/saplings/depends.txt b/saplings/depends.txt new file mode 100644 index 0000000..331d858 --- /dev/null +++ b/saplings/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/saplings/init.lua b/saplings/init.lua new file mode 100644 index 0000000..b4be4b2 --- /dev/null +++ b/saplings/init.lua @@ -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", +}) \ No newline at end of file diff --git a/saplings/textures/sapling16xa.png b/saplings/textures/sapling16xa.png new file mode 100644 index 0000000000000000000000000000000000000000..5d0ebb49b5f0a94cb31b9cfa1480100b190ab435 GIT binary patch literal 578 zcmV-I0=@l-P)N2bPDNB8 zb~7$DE-^7j^FlWO00F*9L_t(IPnD9(D}+%P#=i|pGF!8fl@e2k4WV3Sk1PhsY{;ct zQj$wT?hzwqVx)0rn2m9#X5k)9lUv3}LxW6_Kj1O%sgLv3m(1eVdEfUu&-0yg`UC*~ zLcgIwi7pB{YmKk{ol8VKuOH5!JI_IA`%)U*UWdZ4t;OiN2HK$*-}bLgV&d_Bxs@H} zO!Tf4qIx(C4=<;x5li;tfUy`9N;A^Qn%_R}RV1nyi^YPi?ni7tI|^**$%S#Z3bo_O zc=p}|2-i>h3Y|3{CBtz{B;xd(Dk;R}Iaa9SBOKR`3tBO6>p{IK4sFv3>?DHapaqRn z(a>)e!C7#t z6H#=mRNf$G=8-hrt7N2bPDNB8 zb~7$DE-^7j^FlWO00AvYL_t(IPh8weN=;BY_-T;fC2x7w^15O`3 zpoL8igs}=DV~_#pV#pY)ATl082Hbvjl%Zv{!~ep`691pPxx@?;C)xmz=2^S4|1UmJ z3FIOa5H#T9w-<~cTR{pzG`a#@20VXvBXa)Er2h;cO(5Gr7^L{bp}l&@3PEBY-@ju= z7DLtp<}BJ*3KU0ZK(-ace){ME+|aXkc5-&C4g24*KIs3Q7Z;cqUVXeL50ix9k00KN zfHdB`a*-L?Fc7}^_yp7B%@O|-`(^%LeYBq$MI$;!cMVKz>4CEUy=y%nUO<+_hLH`p zaQZkmh!4^@b$jyv)-`dM8qhJ!fP1%ZfV~A`Uwp8Y1s0H4H6de=rsq!{u>$Fb=yDHU bp5X=nMtZ=z3Hmr%00000NkvXXu0mjf4|A@k literal 0 HcmV?d00001 diff --git a/saplings/textures/sapling16xc.png b/saplings/textures/sapling16xc.png new file mode 100644 index 0000000000000000000000000000000000000000..eed8e7323355c941af0f1f31709309fd00d00bcf GIT binary patch literal 217 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSK$uZf!>a)(C{^MbQ4*Y=R#Ki=l*$m0n3-3i=jR%tP-d)Ws%L2E{@KYKs4CRc z#WBRfKl#W1|Mqcj^49#Qf4C)%FQ-VMCsaVPna4rg`B((&#E%As4D%Ji3{K_}!xW%o zTf9x}8IOsK>iln)o@tmJu5TEa!r<{a!Tf