Add straw
authorjeanpatrick.guerrero@gmail.com <jeanpatrick.guerrero@gmail.com>
Mon, 12 Jan 2015 19:21:06 +0000 (20:21 +0100)
committerNovatux <nathanael.courant@laposte.net>
Sat, 17 Jan 2015 15:30:31 +0000 (16:30 +0100)
mods/farming/README.txt
mods/farming/init.lua
mods/farming/nodes.lua
mods/farming/textures/farming_straw.png [new file with mode: 0644]

index 4663181aea9a4a034d8b97ed4540d82fb336f84a..7bfc195ca4aabd1a8ec6590d316064eb10637e96 100644 (file)
@@ -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
index d3157a073c7f7747b41deaa5a07953d768e7d4b3..8606e94a6449dbb75d09eecccd44f9973a4d5ac3 100644 (file)
@@ -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"},
+       }
+})
index a99f505196a57e0bdb9a983ee63ac6e46a72b230..6d25598b2cacf29c2f9772099b9d6501ac92bc29 100644 (file)
@@ -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 (file)
index 0000000..e427772
Binary files /dev/null and b/mods/farming/textures/farming_straw.png differ