add 'ethereal.abundant_onions' setting

This commit is contained in:
tenplus1 2023-12-04 08:07:56 +00:00
parent 3c83e77607
commit b3654162ba
3 changed files with 8 additions and 1 deletions

View File

@ -105,6 +105,7 @@ who helped make this mod bigger and better throughout it's release :)
- Add 11 new lucky blocks
- Caverealms' glow bait reduces wait time when fishing
- Add Basandra Bush and wood items, Add Spore Grass
- Add 'ethereal.abundant_onions' setting (default: true)
#### 1.29
- Use "stratum" to generate mesa biome for stripey goodness

View File

@ -310,8 +310,12 @@ add_node({"ethereal:cold_dirt", "default:dirt_with_coniferous_litter"},
add_node({"default:dirt_with_snow"}, 0.8, {"taiga"}, 40, 140,
{"default:snow"}, nil, nil, nil, ethereal.alpine)
-- Check onion setting
local abundant = minetest.settings:get_bool("ethereal.abundant_onions") ~= false
local onion_rate = abundant and 0.025 or 0.005
-- wild onion
add_node({"default:dirt_with_grass", "ethereal:prairie_dirt"}, 0.025,
add_node({"default:dirt_with_grass", "ethereal:prairie_dirt"}, onion_rate,
{"deciduous_forest", "grassytwo", "jumble", "prairie"}, 1, 100,
{"ethereal:onion_4"}, nil, nil, nil, 1)

View File

@ -41,3 +41,5 @@ ethereal.mediterranean (Mediterranean biome, 1 = Enable / 0 = Disable) int 1
ethereal.flightpotion_duration (Flight Potion Duration) int 300
ethereal.clear_default_biomes (Clear Default Biomes and Decoration) bool true
ethereal.abundant_onions (Abundant Onions) bool true