-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsettings.lua
50 lines (32 loc) · 1.33 KB
/
settings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--
-- The settings section for seeder
--
--
--
-- Is technic mod present ? If not use wearout tool instead
--
farmingNG.havetech = minetest.get_modpath("technic")
-- Maximum charge of the seeder
farmingNG.seeder_max_charge =
tonumber(minetest.settings:get("farmingNG_seeder_max_charge")) or 900000
-- How much it costs to place a seed
farmingNG.seeder_charge_per_node =
tonumber(minetest.settings:get("farmingNG_seeder_charge_per_node")) or 1800
-- more verbose chat messages
farmingNG.chaton = minetest.settings:get_bool("farmingNG_chaton", false)
-- easy recipe if technic mod is present
farmingNG.easy = minetest.settings:get_bool("farmingNG_easy", false)
-- Maximum charge of the harvester
farmingNG.harvester_max_charge =
tonumber(minetest.settings:get("farmingNG_harvester_max_charge")) or 650000
-- Costs of harvesting one node
farmingNG.harvester_charge_per_node =
tonumber(minetest.settings:get("farmingNG_harvester_charge_per_node")) or 1300
-- make the tool available
farmingNG.harvester_machine =
minetest.settings:get_bool("farmingNG_harvester_machine", true)
-- harvests also wheat_7, rice_7 etc no need to wait until full grown
farmingNG.harvester_nofullg =
minetest.settings:get_bool("farmingNG_harvester_nofullg", true)
-- control sound volume
farmingNG.gain = tonumber(minetest.settings:get("farmingNG_gain")) or 0.5