From 5d8b2442ce6238bb1bf662166341f6254e911ef5 Mon Sep 17 00:00:00 2001 From: "jeanpatrick.guerrero@gmail.com" Date: Mon, 12 Jan 2015 20:21:06 +0100 Subject: [PATCH] Add straw --- mods/farming/README.txt | 3 +++ mods/farming/init.lua | 17 +++++++++++++++++ mods/farming/nodes.lua | 8 ++++++++ mods/farming/textures/farming_straw.png | Bin 0 -> 892 bytes 4 files changed, 28 insertions(+) create mode 100644 mods/farming/textures/farming_straw.png diff --git a/mods/farming/README.txt b/mods/farming/README.txt index 4663181a..7bfc195c 100644 --- a/mods/farming/README.txt +++ b/mods/farming/README.txt @@ -57,3 +57,6 @@ Created by VanessaE (License: WTFPL): farming_cotton_6.png farming_cotton_7.png farming_cotton_8.png + +Created by MasterGollum (License: WTFPL): + farming_straw.png \ No newline at end of file diff --git a/mods/farming/init.lua b/mods/farming/init.lua index d3157a07..8606e94a 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -59,3 +59,20 @@ minetest.register_craft({ {"farming:cotton", "farming:cotton"}, } }) + +-- Straw +minetest.register_craft({ + output = "farming:straw 3", + recipe = { + {"farming:wheat", "farming:wheat", "farming:wheat"}, + {"farming:wheat", "farming:wheat", "farming:wheat"}, + {"farming:wheat", "farming:wheat", "farming:wheat"}, + } +}) + +minetest.register_craft({ + output = "farming:wheat 3", + recipe = { + {"farming:straw"}, + } +}) diff --git a/mods/farming/nodes.lua b/mods/farming/nodes.lua index a99f5051..6d25598b 100644 --- a/mods/farming/nodes.lua +++ b/mods/farming/nodes.lua @@ -80,6 +80,14 @@ minetest.register_node("farming:desert_sand_soil_wet", { } }) +minetest.register_node("farming:straw", { + description = "Straw", + tiles = {"farming_straw.png"}, + is_ground_content = false, + groups = {snappy=3, flammable=4}, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_abm({ nodenames = {"group:field"}, interval = 15, diff --git a/mods/farming/textures/farming_straw.png b/mods/farming/textures/farming_straw.png new file mode 100644 index 0000000000000000000000000000000000000000..e4277723b128e9845d427fb22c6bffafd7292565 GIT binary patch literal 892 zcmV-?1B3jDP)zAAqFsmt5n?&*{zmPJ9FmS}fu#KGe9b zh&FwWw2Y$OMdVUMIF@m12GebmTEioW4{YNWPoFE0>6BHO&ws73ECr`lAXM;oHJqx6 zu#HoyPma0#p~-fma{BcbC`A)pTOyn_g`yH9D^A)~j?c@4i-3! zNHY|BgOrEpRT;aa!S;ZZ>-a;3B2RG4F~LkhYy(=|C5zb_fn+jzSboK&?-};%l-eE! z3H$Ms$%Bu$c`wmwyA0oN=v{QMYjr-{q^!e?e?FFxr9PM6t~l&`TD2HmU1D~?k4>B- z6_KuE7PB261`g~KiZDcTJc=Y@@vx*-H>i3QHp_%odri0+^5QHbo&=no+X&aK5Dfms zamxg=CBf7o+wBqJIm2O0p&j`9_Z-{SNz^LE+GCj-Pz6 zcb{OZ2+sD9t2So3MNvyECnJ{03Q_O&$PO-!J>&M)!j#+W_Ei>fh3TWo%C~vac*@2v zGnqHJ`_JRq%O=Gpq2nru!L^EPJ~HZ0DD;F)G-f&zM0=l`KQ`n{(6R;b-oPK;a@>d* z+)2nKm1@^U1X+YGA937!O)wavOA(5^B?~j0&JIlpDH=9!-rSQ$GSwrKq)0ew&baTZ z2um2O*K0bLHCheOJcC14LsANww!@d-T@ej7l=Xlory*9Q$2RCwv7RCFkpBT>mv7$x S>1I#>0000