2014-11-09 19:06:28 +00:00
|
|
|
|
2018-03-08 14:33:47 +00:00
|
|
|
for i = 4, 5 do
|
2014-11-09 19:06:28 +00:00
|
|
|
|
2016-03-10 17:45:55 +00:00
|
|
|
-- Override default grass and have it drop Wheat Seeds
|
2014-11-09 19:06:28 +00:00
|
|
|
|
2015-08-26 15:05:17 +01:00
|
|
|
minetest.override_item("default:grass_" .. i, {
|
2014-11-09 19:06:28 +00:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2015-07-05 10:54:18 +01:00
|
|
|
{items = {'farming:seed_wheat'}, rarity = 5},
|
2019-01-11 10:23:22 +00:00
|
|
|
{items = {'farming:seed_oat'},rarity = 5},
|
2014-11-09 19:06:28 +00:00
|
|
|
{items = {'default:grass_1'}},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2016-03-10 17:45:55 +00:00
|
|
|
-- Override default dry grass and have it drop Barley Seeds
|
2017-08-28 12:33:25 +01:00
|
|
|
|
2016-03-10 17:45:55 +00:00
|
|
|
if minetest.registered_nodes["default:dry_grass_1"] then
|
|
|
|
|
|
|
|
minetest.override_item("default:dry_grass_" .. i, {
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2019-01-06 10:28:24 +00:00
|
|
|
{items = {'farming:seed_barley'}, rarity = 5},
|
2019-01-11 10:23:22 +00:00
|
|
|
{items = {'farming:seed_rye'},rarity = 5},
|
2016-03-10 17:45:55 +00:00
|
|
|
{items = {'default:dry_grass_1'}},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2014-11-09 19:06:28 +00: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 10:54:18 +01:00
|
|
|
{items = {'farming:seed_cotton'}, rarity = 8},
|
2019-01-11 10:23:22 +00:00
|
|
|
{items = {'farming:seed_rice'},rarity = 8},
|
2014-11-09 19:06:28 +00:00
|
|
|
{items = {'default:junglegrass'}},
|
|
|
|
}
|
|
|
|
},
|
2016-03-10 17:45:55 +00:00
|
|
|
})
|