1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-02-26 22:50:23 +01:00

add setting to disable weeds

This commit is contained in:
tenplus1 2025-02-17 08:09:55 +00:00
parent ba4026c406
commit 1416f6e615
3 changed files with 23 additions and 17 deletions

View File

@ -217,7 +217,7 @@ on an older map are enabled and growing properly.
### Changelog: ### Changelog:
- 1.49 - Added {eatable=1} groups to food items with the value giving HP when eaten, improved mineclone support, separated foods from crop files, hoes can deal damage. Add weed and weed bale. - 1.49 - Added {eatable=1} groups to food items with the value giving HP when eaten, improved mineclone support, separated foods from crop files, hoes can deal damage. Add weed and weed bale (with setting to disable weed growth).
- 1.48 - added 'farming_use_utensils' setting to enable/disable utensils in recipes, added mayonnaise (thx felfa), added gingerbread man, Added MineClone2 compatibility - 1.48 - added 'farming_use_utensils' setting to enable/disable utensils in recipes, added mayonnaise (thx felfa), added gingerbread man, Added MineClone2 compatibility
- 1.47 - Now blueberries can make blue dye, tweak soil types to work better with older 0.4.x clients and add spanish translation (thx mckaygerhard), add trellis setting to registered_crops and fix pea and soy crop names (thx nixnoxus), add strawberries if ethereal mod not active, added asparagus; spinach; eggplant (thx Atlante for new textures), Sugar Cube - 1.47 - Now blueberries can make blue dye, tweak soil types to work better with older 0.4.x clients and add spanish translation (thx mckaygerhard), add trellis setting to registered_crops and fix pea and soy crop names (thx nixnoxus), add strawberries if ethereal mod not active, added asparagus; spinach; eggplant (thx Atlante for new textures), Sugar Cube
- 1.46 - Added min/max default light settings, added lettuce and blackberries with food items (thanks OgelGames), added soya, vanilla and sunflowers (thanks Felfa), added tofu, added salt crystals (thanks gorlock) - 1.46 - Added min/max default light settings, added lettuce and blackberries with food items (thanks OgelGames), added soya, vanilla and sunflowers (thanks Felfa), added tofu, added salt crystals (thanks gorlock)

View File

@ -2,3 +2,5 @@
farming_stage_length (Farming Stage Length) float 160.0 farming_stage_length (Farming Stage Length) float 160.0
farming_use_utensils (Use utensil recipes) bool true farming_use_utensils (Use utensil recipes) bool true
farming_disable_weeds (Disable Weed growth) bool false

View File

@ -197,7 +197,9 @@ minetest.register_abm({
-- those darn weeds -- those darn weeds
minetest.register_abm({ if minetest.settings:get_bool("farming_disable_weeds") ~= true then
minetest.register_abm({
nodenames = {"group:field"}, nodenames = {"group:field"},
neighbors = {"air"}, neighbors = {"air"},
interval = 50, interval = 50,
@ -216,4 +218,6 @@ minetest.register_abm({
minetest.set_node(pos, {name = "farming:weed", param2 = 2}) minetest.set_node(pos, {name = "farming:weed", param2 = 2})
end end
end end
}) })
end