Skip to content

Commit

Permalink
added settingtypes.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
berengma committed May 19, 2019
1 parent 51d127c commit 4eafab5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
Binary file modified screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
farmingNG.havetech = minetest.get_modpath("technic") -- Is technic mod present ? If not use wearout tool instead
--
--
farmingNG.seeder_max_charge = 900000 -- Maximum charge of the seeder
farmingNG.seeder_charge_per_node = 1800 -- How much it costs to place a seed
farmingNG.seeder_max_charge = minetest.settings:get("farmingNG_seeder_max_charge") or 900000 -- Maximum charge of the seeder
farmingNG.seeder_charge_per_node = minetest.settings:get("farmingNG_seeder_charge_per_node") or 1800 -- How much it costs to place a seed
--
farmingNG.chaton = false -- more verbose chat messages
farmingNG.easy = false -- easy recipe if technic mod is present
farmingNG.chaton = minetest.settings:get_bool("farmingNG_chaton", false) -- more verbose chat messages
farmingNG.easy = minetest.settings:get_bool("farmingNG_easy", false) -- easy recipe if technic mod is present
--
farmingNG.harvester_max_charge = 650000 -- Maximum charge of the harvester
farmingNG.harvester_charge_per_node = 1300 -- Costs of harvesting one node
farmingNG.harvester_machine = true -- make the tool available
farmingNG.harvester_nofullg = true -- harvests also wheat_7, rice_7 etc no need to wait until full grown
farmingNG.harvester_max_charge = minetest.settings:get("farmingNG_harvester_max_charge") or 650000 -- Maximum charge of the harvester
farmingNG.harvester_charge_per_node = minetest.settings:get("farmingNG_harvester_charge_per_node") or 1300 -- Costs of harvesting one node
farmingNG.harvester_machine = minetest.settings:get_bool("farmingNG_harvester_machine", true) -- make the tool available
farmingNG.harvester_nofullg = minetest.settings:get_bool("farmingNG_harvester_nofullg", true) -- harvests also wheat_7, rice_7 etc no need to wait until full grown

30 changes: 30 additions & 0 deletions settingtypes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#farmingNG settings

#maximum charge of the seeder, lower values mean faster load if technic present
farmingNG_seeder_max_charge (Maximum charge of the seeder) int 900000

#costs to place a seed: maxcharge devided by charge_per_node = number of
#nodes which can be placed (default 900000 / 1800 = 500 nodes)
farmingNG_seeder_charge_per_node (How much it costs to place a seed) int 1800

#more verbose, tells you how many seeds were used and more
farmingNG_chaton (more verbose chat messages) bool false

#less expensive recipe if technic mod is present
farmingNG_easy (easy recipe if technic mod is present) bool false

#maximum charge of the harvster, lower values mean faster load if technic present
farmingNG_harvester_max_charge (Maximum charge of the harvester) int 650000

#costs to place a seed: maxcharge devided by charge_per_node = number of
#nodes which can be harvested (default 650000 / 1300 = 500 nodes)
farmingNG_harvester_charge_per_node (Costs of harvesting one node) int 1300

#plants like wheat, rice, oat etc do not grow equally but already give drops
#if only 90% grown, set to false if you only want to harvest 100% grown nodes
farmingNG_harvester_nofullg (harvest not already fully grown) bool true

#set to false if you you do not need the harvester
farmingNG_harvester_machine (harvester tool available) bool true


0 comments on commit 4eafab5

Please sign in to comment.