1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-27 11:10:37 +01:00
server-nalc/minetestforfun_game/mods/farming/grass.lua

29 lines
520 B
Lua
Raw Normal View History

2014-10-28 18:01:32 +01:00
-- Override default grass and have it drop Wheat Seeds
2015-10-26 23:43:06 +01:00
for i = 1, 5 do
2014-11-13 23:31:49 +01:00
2015-10-26 23:43:06 +01:00
minetest.override_item("default:grass_" .. i, {
2014-11-13 23:31:49 +01:00
drop = {
max_items = 1,
items = {
2015-08-24 16:44:20 +02:00
{items = {'farming:seed_wheat'}, rarity = 5},
2014-11-13 23:31:49 +01:00
{items = {'default:grass_1'}},
}
},
})
end
2014-10-28 18:01:32 +01:00
-- Override default Jungle Grass and have it drop Cotton Seeds
2014-11-13 23:31:49 +01:00
minetest.override_item("default:junglegrass", {
2014-10-28 18:01:32 +01:00
drop = {
max_items = 1,
items = {
2015-08-24 16:44:20 +02:00
{items = {'farming:seed_cotton'}, rarity = 8},
2014-10-28 18:01:32 +01:00
{items = {'default:junglegrass'}},
}
},
2015-09-02 15:37:12 +02:00
})