farming/grass.lua

43 lines
855 B
Lua
Raw Normal View History

2014-11-09 11:06:28 -08:00
2016-03-10 09:45:55 -08:00
for i = 3, 5 do
2014-11-09 11:06:28 -08:00
2016-03-10 09:45:55 -08:00
-- Override default grass and have it drop Wheat Seeds
2014-11-09 11:06:28 -08:00
2015-08-26 07:05:17 -07:00
minetest.override_item("default:grass_" .. i, {
2014-11-09 11:06:28 -08:00
drop = {
max_items = 1,
items = {
2015-07-05 02:54:18 -07:00
{items = {'farming:seed_wheat'}, rarity = 5},
2014-11-09 11:06:28 -08:00
{items = {'default:grass_1'}},
}
},
})
2016-03-10 09:45:55 -08:00
-- 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
2014-11-09 11:06:28 -08:00
end
-- Override default Jungle Grass and have it drop Cotton Seeds
minetest.override_item("default:junglegrass", {
drop = {
max_items = 1,
items = {
2015-07-05 02:54:18 -07:00
{items = {'farming:seed_cotton'}, rarity = 8},
2014-11-09 11:06:28 -08:00
{items = {'default:junglegrass'}},
}
},
2016-03-10 09:45:55 -08:00
})