From b3654162ba26572be155de24ed9aec63649015f7 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 4 Dec 2023 08:07:56 +0000 Subject: [PATCH] add 'ethereal.abundant_onions' setting --- README.md | 1 + decor.lua | 6 +++++- settingtypes.txt | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8226613..7725f70 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/decor.lua b/decor.lua index a81c20a..15335f3 100644 --- a/decor.lua +++ b/decor.lua @@ -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) diff --git a/settingtypes.txt b/settingtypes.txt index f521074..2f206c3 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -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