From 4b9914fdcb0c4e7459c37c0d5953709733dab15d Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 16 Mar 2013 21:27:28 +0100 Subject: [PATCH] Add jungleleaves, junglewood and junglesapling --- mods/default/README.txt | 5 ++ mods/default/init.lua | 69 +++++++++++++++++- mods/default/mapgen.lua | 2 + .../default/textures/default_jungleleaves.png | Bin 0 -> 418 bytes .../textures/default_junglesapling.png | Bin 0 -> 351 bytes mods/default/textures/default_jungletree.png | Bin 751 -> 758 bytes .../textures/default_jungletree_top.png | Bin 865 -> 899 bytes mods/default/textures/default_junglewood.png | Bin 0 -> 351 bytes 8 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 mods/default/textures/default_jungleleaves.png create mode 100644 mods/default/textures/default_junglesapling.png create mode 100644 mods/default/textures/default_junglewood.png diff --git a/mods/default/README.txt b/mods/default/README.txt index 5d0735b9..e4227b95 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -89,6 +89,11 @@ MirceaKitsune (WTFPL): Jordach (CC BY-SA 3.0): character.png +PilzAdam (WTFPL): + default_jungleleaves.png + default_junglesapling.png + default_junglewood.png + Glass breaking sounds (CC BY 3.0): 1: http://www.freesound.org/people/cmusounddesign/sounds/71947/ 2: http://www.freesound.org/people/Tomlija/sounds/97669/ diff --git a/mods/default/init.lua b/mods/default/init.lua index 1f2c4f7d..53bd66b2 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -213,6 +213,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'default:junglewood 4', + recipe = { + {'default:jungletree'}, + } +}) + minetest.register_craft({ output = 'default:stick 4', recipe = { @@ -563,7 +570,7 @@ minetest.register_craft({ minetest.register_craft({ type = "fuel", - recipe = "default:leaves", + recipe = "group:leaves", burntime = 1, }) @@ -663,6 +670,12 @@ minetest.register_craft({ burntime = 40, }) +minetest.register_craft({ + type = "fuel", + recipe = "default:junglesapling", + burntime = 10, +}) + -- -- Node definitions -- @@ -886,6 +899,58 @@ minetest.register_node("default:jungletree", { sounds = default.node_sound_wood_defaults(), }) +minetest.register_node("default:junglewood", { + description = "Junglewood Planks", + tiles = {"default_junglewood.png"}, + is_ground_content = true, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:jungleleaves", { + description = "Jungle Leaves", + drawtype = "allfaces_optional", + visual_scale = 1.3, + tiles = {"default_jungleleaves.png"}, + paramtype = "light", + groups = {snappy=3, leafdecay=3, flammable=2, leaves=1}, + drop = { + max_items = 1, + items = { + { + -- player will get sapling with 1/20 chance + items = {'default:junglesapling'}, + rarity = 20, + }, + { + -- player will get leaves only if he get no saplings, + -- this is because max_items is 1 + items = {'default:jungleleaves'}, + } + } + }, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:junglesapling", { + description = "Jungle Sapling", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_junglesapling.png"}, + inventory_image = "default_junglesapling.png", + wield_image = "default_junglesapling.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1}, + sounds = default.node_sound_defaults(), +}) +-- alias for tree growing abm in content_abm.cpp +minetest.register_alias("junglesapling", "default:junglesapling") + minetest.register_node("default:junglegrass", { description = "Jungle Grass", drawtype = "plantlike", @@ -905,7 +970,7 @@ minetest.register_node("default:leaves", { visual_scale = 1.3, tiles = {"default_leaves.png"}, paramtype = "light", - groups = {snappy=3, leafdecay=3, flammable=2}, + groups = {snappy=3, leafdecay=3, flammable=2, leaves=1}, drop = { max_items = 1, items = { diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index a40f3e53..8955caeb 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -8,6 +8,8 @@ minetest.register_alias("mapgen_air", "air") minetest.register_alias("mapgen_stone", "default:stone") minetest.register_alias("mapgen_tree", "default:tree") minetest.register_alias("mapgen_leaves", "default:leaves") +minetest.register_alias("mapgen_jungletree", "default:jungletree") +minetest.register_alias("mapgen_jungleleaves", "default:jungleleaves") minetest.register_alias("mapgen_apple", "default:apple") minetest.register_alias("mapgen_water_source", "default:water_source") minetest.register_alias("mapgen_dirt", "default:dirt") diff --git a/mods/default/textures/default_jungleleaves.png b/mods/default/textures/default_jungleleaves.png new file mode 100644 index 0000000000000000000000000000000000000000..68e9b9e4485d2ba6d03abb6eced5e0840c9e8bcb GIT binary patch literal 418 zcmV;T0bTxyP))p6CmTj`Z=qGHG&8(Ij zceqs#bZu_{AS%jSV9k%OpHY3i8z@kuD08`04*-B~26Sz2iZT}fumFHxiIU?EE{&xq zbLraNjDEuCr_c!iSOWkGM!p%sRhJ;yH$%9MhHnN~l6m@On30*w=qH>m`;R8JYkQ-; z*Vnr#%3NF;3oS7ZLff?bfd!4zWgonbehOAt>)PH}Dz15^9UY=ZQRWgt1OS)D!miAP zqC6d9`52=vXgh(F#^en*zQdJ0FC3tnJ9?C(Ot$efiVhBrms; zh;(>wX*p*a*_1Hu$~-u&@VXBd;JaU#-Md3f55mLjyWIy)Bpeg M07*qoM6N<$f_U|=TmS$7 literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_junglesapling.png b/mods/default/textures/default_junglesapling.png new file mode 100644 index 0000000000000000000000000000000000000000..42df417d88b343db4237129f30c0363a2069854b GIT binary patch literal 351 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#F0+7$sP@;_bDjZ({&~7MhFF|lI@#9$uz^6^`(7FKFrJ72P39G+F0eX^|6}}L z|K`?0C MP!GQ;S30YFIOqRd@U`k&aew^$k3SZ?obr@c)V#f;pKXd|@gq@-lL=cz zZPJW6cG&*cxqY|p4v>4NEJ(`3`1aLlo7qy&#XLK+x4|`{{2ljd007`UwX4IrY|FM(r=cVRnQ;67elWZR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dD5en0wG(cJYiNf*2E-74W* zwt*MDmw65>m2AiO{f`f`yU(Oz1|fKxr^^RqVBrP+beVp4tm_83{QIALe{dT*Ky^0g zzP-6h!L diff --git a/mods/default/textures/default_jungletree_top.png b/mods/default/textures/default_jungletree_top.png index 805272a7363ee3df080e6aa061e1f2ac226d8e40..6bb6f2b527870ae57e9083388c96b97596381b09 100644 GIT binary patch delta 877 zcmV-z1CspV27?EXBYyx1a7bBm000XU000XU0RWnu7ytkO2XskIMF-sj5EK(Oz_(Yq z0009bNklxLDyn2w$p)jJX(9*e!WL{?aw<#3WgM9Mn0jgDthCPokH1hQZ z!Ti-J#LPd~f)^JVSy6fQy%7MO>f6omXFnmg#p(!Y27=_{!1h)~#{c5z;FE0IwuQ}x z4^h!M^x`o9-hcZzZ#{3*(fuIje!d2P9Q3OQmPx>`(|^+yW#9fD%yf$8##)N06pM+> zdZO8xc>F;T^p8!qWhpI(>$8HV?MV z@TXq@AocEj=!8eE#$L&g&F2Y48(1}qR0Rx@vs2)a5XwaiNnmPjk&E#e2A>Bz{)i(PRTN5IE?rsT?2p&hk6gc*VYlL^luY3D z2apfp$m ze`a@#KvNr<5k!={h-wvDlSsQT0i)yVg2VlfqXj+ay3R`{KSr#Hg!$l`NpiQdl&mbp z+!C2vaTekin7i^F)04k$NO0rEEVTiN(rTWwL$B~3jngZQUgBYy)ZNkl1v7OHNMGT+Ytg^&YFWH@D2P$*PTG z!%Z2|VTY?_&>>pKu(F|oAmXMl*iYU!8QVa-i&C675NEKHs&lsDrS06jt(P@PHA|W_ z_mkrfWn~4QKj8UZ-uDv*kMFaDVjkI{@$TSvy!FvASJ{1c2Y-7W+KOSg0LZ43%uUBR ze=)+thu$Of{sF}9{uc?}(aVp&#*j*OuH~*BJE?5!#8nYMC`gDUFQ#eZ?+Y`$cA$^Q z1ncRoX2v$mdc%|MV{Jh*W+Cx(9E z@c#R`v9Xp_h6~Z*V?$Rz0H448Dkq*WSs&cMo2SnKAp6`JLLrIA?PE))pY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