ademant 4561d59854 decoration of plants | 5 years ago | |
---|---|---|
.. | ||
locale | 5 years ago | |
textures | 5 years ago | |
README.md | 5 years ago | |
abm.lua | 5 years ago | |
actions_register.lua | 5 years ago | |
api.lua | 5 years ago | |
api.txt | 5 years ago | |
compatibility.lua | 5 years ago | |
config.lua | 5 years ago | |
craft.lua | 5 years ago | |
crops.lua | 5 years ago | |
crops.txt | 5 years ago | |
depends.txt | 5 years ago | |
description.txt | 5 years ago | |
hoes.lua | 5 years ago | |
init.lua | 5 years ago | |
intllib.lua | 5 years ago | |
license.txt | 5 years ago | |
light_stat.txt | 5 years ago | |
mapgen.lua | 5 years ago | |
mod.conf | 5 years ago | |
nodes.lua | 5 years ago | |
nodes_register.lua | 5 years ago | |
screenshot.png | 5 years ago | |
settingtypes.txt | 5 years ago | |
statistics.lua | 5 years ago | |
tool_shot.png | 5 years ago | |
tools.lua | 5 years ago | |
tools.txt | 5 years ago | |
tools_register.lua | 5 years ago | |
utensils.lua | 5 years ago |
See license.txt for license information.
Mod for extending the farming capabilities of minetest.
You have wild crops, which you can cultivate to get faster and more harvest. The crops can be infected, where you get nothing. And the infection spreads to nearby crops. A culture of crops can be destroyed by the infection, where the cultured variant of crops are easier infected than the wild form.
With special plants (right now nettles) you can make a curing mixture. And other plants can protect the culture. You should use special devices to get more fruits:
For each crop you can define the count of step. In the last step the crop is full-grown, where the crops can be punchable. The defined grow time is modified by the amount of light the crop would see and the place: The less light at the position will be (under a tree for example), the longer the crop needs to reach the next step.
The code is written to enable extension by other mods.
You have only one txt file to configure the crops. It's read in a table. Not defined fields are filled, if a default row is given. If no default is given, the field is not importet to the crop. Based on the definition the behauvior is defined:
The crops inside farming mod are defined by a single .txt file, where for each crop in a row the whole definition is given.
Each row will by interpreted to generate a data object, which is registered by farming.register_plant. Inside this function all registering are called by functions intended for internal usage.
A detailed description of the txt file is given in crops.lua
Most important function is farming.register_plant(def). The structure of is given in api.txt.
Originally by PilzAdam (MIT)
webdesigner97 (MIT)
TenPlus1 (MIT)
ademant (MIT)
Various Minetest developers and contributors (MIT)
Created by PilzAdam (CC BY 3.0):
Created by BlockMen (CC BY 3.0):
Created by MasterGollum (CC BY 3.0):
Created by Gambit (CC BY 3.0):
Created by Napiophelios (CC BY-SA 3.0):
Created by Ten1Plus (CC BY-SA 3.0):
Created by ademant (CC BY 3.0):