diff options
Diffstat (limited to 'grass.lua')
-rw-r--r-- | grass.lua | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -1,7 +1,7 @@ --- Override default grass and have it drop Wheat Seeds +for i = 3, 5 do -for i = 1, 5 do + -- Override default grass and have it drop Wheat Seeds minetest.override_item("default:grass_" .. i, { drop = { @@ -13,6 +13,20 @@ for i = 1, 5 do }, }) + -- Override default dry grass and have it drop Barley Seeds + if minetest.registered_nodes["default:dry_grass_1"] then + + minetest.override_item("default:dry_grass_" .. i, { + drop = { + max_items = 1, + items = { + {items = {'farming:seed_barley'}, rarity = 6}, + {items = {'default:dry_grass_1'}}, + } + }, + }) + end + end -- Override default Jungle Grass and have it drop Cotton Seeds @@ -25,4 +39,4 @@ minetest.override_item("default:junglegrass", { {items = {'default:junglegrass'}}, } }, -})
\ No newline at end of file +}) |