2014-11-09 20:06:28 +01:00
|
|
|
|
2018-03-08 15:33:47 +01:00
|
|
|
for i = 4, 5 do
|
2014-11-09 20:06:28 +01:00
|
|
|
|
2020-07-02 15:31:12 +02:00
|
|
|
-- Override default grass and have it drop Wheat and Oat Seeds
|
2014-11-09 20:06:28 +01:00
|
|
|
|
2015-08-26 16:05:17 +02:00
|
|
|
minetest.override_item("default:grass_" .. i, {
|
2014-11-09 20:06:28 +01:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2019-08-05 10:12:06 +02:00
|
|
|
{items = {"farming:seed_wheat"}, rarity = 5},
|
|
|
|
{items = {"farming:seed_oat"},rarity = 5},
|
2020-07-02 15:31:12 +02:00
|
|
|
{items = {"default:grass_1"}}
|
2014-11-09 20:06:28 +01:00
|
|
|
}
|
2020-07-02 15:31:12 +02:00
|
|
|
}
|
2014-11-09 20:06:28 +01:00
|
|
|
})
|
|
|
|
|
2020-07-02 15:31:12 +02:00
|
|
|
-- Override default dry grass and have it drop Barley and Rye Seeds
|
2017-08-28 13:33:25 +02:00
|
|
|
|
2016-03-10 18:45:55 +01:00
|
|
|
if minetest.registered_nodes["default:dry_grass_1"] then
|
|
|
|
|
|
|
|
minetest.override_item("default:dry_grass_" .. i, {
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2019-08-05 10:12:06 +02:00
|
|
|
{items = {"farming:seed_barley"}, rarity = 5},
|
|
|
|
{items = {"farming:seed_rye"},rarity = 5},
|
2020-07-02 15:31:12 +02:00
|
|
|
{items = {"default:dry_grass_1"}}
|
2016-03-10 18:45:55 +01:00
|
|
|
}
|
2020-07-02 15:31:12 +02:00
|
|
|
}
|
2016-03-10 18:45:55 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2014-11-09 20:06:28 +01:00
|
|
|
end
|
|
|
|
|
2020-07-02 15:31:12 +02:00
|
|
|
-- Override default Jungle Grass and have it drop Cotton and Rice Seeds
|
2014-11-09 20:06:28 +01:00
|
|
|
|
|
|
|
minetest.override_item("default:junglegrass", {
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2019-08-05 10:12:06 +02:00
|
|
|
{items = {"farming:seed_cotton"}, rarity = 8},
|
2021-12-04 15:06:18 +01:00
|
|
|
{items = {"farming:rice"},rarity = 8},
|
2020-07-02 15:31:12 +02:00
|
|
|
{items = {"default:junglegrass"}}
|
2014-11-09 20:06:28 +01:00
|
|
|
}
|
2020-07-02 15:31:12 +02:00
|
|
|
}
|
2016-03-10 18:45:55 +01:00
|
|
|
})
|