star_wars/mods/farming/grass.lua

46 lines
980 B
Lua
Raw Normal View History

2020-07-17 14:38:14 +02:00
for i = 4, 5 do
-- Override default grass and have it drop Wheat and Oat Seeds
minetest.override_item("default:grass_" .. i, {
drop = {
max_items = 1,
items = {
2020-07-23 00:42:14 +02:00
{items = {"farming:seed_shorn"}, rarity = 5},
{items = {"farming:seed_roti"},rarity = 5},
2020-07-17 14:38:14 +02:00
{items = {"default:grass_1"}}
}
}
})
-- Override default dry grass and have it drop Barley and Rye Seeds
if minetest.registered_nodes["default:dry_grass_1"] then
minetest.override_item("default:dry_grass_" .. i, {
drop = {
max_items = 1,
items = {
2020-07-23 00:42:14 +02:00
{items = {"farming:seed_lothal_wheat"}, rarity = 5},
{items = {"farming:seed_toz"},rarity = 5},
2020-07-17 14:38:14 +02:00
{items = {"default:dry_grass_1"}}
}
}
})
end
end
-- Override default Jungle Grass and have it drop Cotton and Rice Seeds
minetest.override_item("default:junglegrass", {
drop = {
max_items = 1,
items = {
2020-07-23 00:55:32 +02:00
{items = {"farming:seed_ghoba_rice"},rarity = 8},
2020-07-17 14:38:14 +02:00
{items = {"default:junglegrass"}}
}
}
})