1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-31 21:35:20 +01:00

Updated minetestforfun_game, part 3

- Merged :
	Removed weird constants in default
	Add tree growing functions to game_api.txt
This commit is contained in:
LeMagnesium
2015-03-03 16:04:42 +01:00
parent c4c6e9fe44
commit 3ae94073c4
3 changed files with 32 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ farming.register_plant(name, Plant definition)
steps = 8, -- How many steps the plant has to grow, until it can be harvested
^ Always provide a plant texture for ech step, format: modname_plantname_i.png (i = stepnumber)
minlight = 13, -- Minimum light to grow
maxlight = LIGHT_MAX -- Maximum light to grow
maxlight = default.LIGHT_MAX -- Maximum light to grow
}
Stairs API
@@ -150,6 +150,11 @@ default.node_sound_wood_defaults()
default.node_sound_leaves_defaults()
default.node_sound_glass_defaults()
Default constants
-----------------
default.LIGHT_MAX
^ The maximum light level (see [Node definition] light_source)
Player API
----------
The player API can register player models and update the player's appearence
@@ -274,4 +279,15 @@ minetest.register_craft({
dye.basecolors
^ Array containing the names of available base colors
dye.excolors
^ Array containing the names of the available extended colors
^ Array containing the names of the available extended colors
Trees
-----
default.grow_tree(pos, is_apple_tree)
^ Grows a tree or apple tree at pos
default.grow_jungle_tree(pos)
^ Grows a jungletree at pos
default.grow_pine_tree(pos)
^ Grows a pinetree at pos