2019-12-14 17:47:31 +01:00
|
|
|
|
|
|
|
for i = 4, 5 do
|
|
|
|
|
2021-05-16 18:01:50 +02:00
|
|
|
-- Override default grass and have it drop Wheat and Oat Seeds
|
2019-12-14 17:47:31 +01:00
|
|
|
|
|
|
|
minetest.override_item("default:grass_" .. i, {
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2021-05-16 18:01:50 +02:00
|
|
|
{items = {"farming:seed_wheat"}, rarity = 5},
|
|
|
|
{items = {"farming:seed_oat"},rarity = 5},
|
|
|
|
{items = {"default:grass_1"}}
|
2019-12-14 17:47:31 +01:00
|
|
|
}
|
2021-05-16 18:01:50 +02:00
|
|
|
}
|
2019-12-14 17:47:31 +01:00
|
|
|
})
|
|
|
|
|
2021-05-16 18:01:50 +02:00
|
|
|
-- Override default dry grass and have it drop Barley and Rye Seeds
|
2019-12-14 17:47:31 +01:00
|
|
|
|
|
|
|
if minetest.registered_nodes["default:dry_grass_1"] then
|
|
|
|
|
|
|
|
minetest.override_item("default:dry_grass_" .. i, {
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2021-05-16 18:01:50 +02:00
|
|
|
{items = {"farming:seed_barley"}, rarity = 5},
|
|
|
|
{items = {"farming:seed_rye"},rarity = 5},
|
|
|
|
{items = {"default:dry_grass_1"}}
|
2019-12-14 17:47:31 +01:00
|
|
|
}
|
2021-05-16 18:01:50 +02:00
|
|
|
}
|
2019-12-14 17:47:31 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2021-05-16 18:01:50 +02:00
|
|
|
-- Override default Jungle Grass and have it drop Cotton and Rice Seeds
|
2019-12-14 17:47:31 +01:00
|
|
|
|
|
|
|
minetest.override_item("default:junglegrass", {
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2021-05-16 18:01:50 +02:00
|
|
|
{items = {"farming:seed_cotton"}, rarity = 8},
|
|
|
|
{items = {"farming:seed_rice"},rarity = 8},
|
|
|
|
{items = {"default:junglegrass"}}
|
2019-12-14 17:47:31 +01:00
|
|
|
}
|
2021-05-16 18:01:50 +02:00
|
|
|
}
|
2019-12-14 17:47:31 +01:00
|
|
|
})
|