1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-30 20:50:33 +01:00
server-nalc/minetestforfun_game/mods/farming/grass.lua

43 lines
855 B
Lua
Raw Normal View History

2014-10-28 18:01:32 +01:00
2016-06-18 11:59:26 +02:00
for i = 3, 5 do
2014-10-28 18:01:32 +01:00
2016-06-18 11:59:26 +02:00
-- Override default grass and have it drop Wheat Seeds
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'}},
}
},
})
2016-06-18 11:59:26 +02:00
-- Override default dry grass and have it drop Barley Seeds
if minetest.registered_nodes["default:dry_grass_1"] then
minetest.override_item("default:dry_grass_" .. i, {
drop = {
max_items = 1,
items = {
{items = {'farming:seed_barley'}, rarity = 6},
{items = {'default:dry_grass_1'}},
}
},
})
end
2014-11-13 23:31:49 +01:00
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
})