Skip to content

Commit

Permalink
Add straw
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpatrick.guerrero@gmail.com authored and Ekdohibs committed Jan 17, 2015
1 parent 6157982 commit 5d8b244
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mods/farming/README.txt
Expand Up @@ -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
17 changes: 17 additions & 0 deletions mods/farming/init.lua
Expand Up @@ -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"},
}
})
8 changes: 8 additions & 0 deletions mods/farming/nodes.lua
Expand Up @@ -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,
Expand Down
Binary file added mods/farming/textures/farming_straw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d8b244

Please sign in to comment.