From: jeanpatrick.guerrero@gmail.com Date: Mon, 12 Jan 2015 19:21:06 +0000 (+0100) Subject: Add straw X-Git-Tag: 0.4.12~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5d8b2442ce6238bb1bf662166341f6254e911ef5;p=oweals%2Fminetest_game.git Add straw --- 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 00000000..e4277723 Binary files /dev/null and b/mods/farming/textures/farming_straw.png differ