1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-28 22:36:45 +02:00

separate food /non-food items from crop files, tidy code

This commit is contained in:
tenplus1
2024-08-11 15:38:55 +01:00
parent cdac09a8f4
commit a9a1b720a3
57 changed files with 3691 additions and 3271 deletions

View File

@ -1,5 +1,5 @@
-- Override grasses to drop seeds
-- Override grass to drop wheat and oat seeds
local rarity_lookup = {[1] = 50, [2] = 50, [3] = 50, [4] = 5, [5] = 5}
@ -20,6 +20,8 @@ if minetest.registered_nodes["default:grass_1"] then
end
end
-- override dry grass to drop barley and rye seeds
if minetest.registered_nodes["default:dry_grass_1"] then
for i = 1, 5 do
@ -37,6 +39,8 @@ if minetest.registered_nodes["default:dry_grass_1"] then
end
end
-- override jungle grass to drop cotton and rice seeds
if minetest.registered_nodes["default:junglegrass"] then
minetest.override_item("default:junglegrass", {
@ -51,6 +55,8 @@ if minetest.registered_nodes["default:junglegrass"] then
})
end
-- override mineclone tallgrass to drop all sof the above seeds
if farming.mcl then
minetest.override_item("mcl_flowers:tallgrass", {