From 51047a9df50ee0dd8bfaa75cc314855ecb522702 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 16 Feb 2015 17:35:00 +0000 Subject: [PATCH] Lua API: update --- lua_api.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/lua_api.html b/lua_api.html index 0c9e9cc..a804026 100644 --- a/lua_api.html +++ b/lua_api.html @@ -826,7 +826,7 @@ changed in the future.

set to level from param2.

Meshes

If drawtype mesh is used, tiles should hold model materials textures. -Only static meshes are implemented.
+Only static meshes are implemented. For supported model formats see Irrlicht engine documentation.

Noise Parameters

Noise Parameters, or commonly called "NoiseParams", define the properties of perlin noise.

@@ -891,12 +891,12 @@ distribution of ore.

The relative height of the sheet can be controlled by the same perlin noise as well, by specifying a non-zero scale parameter in noise_params.

IMPORTANT: The noise is not transformed by offset or scale when comparing against the noise -threshold, but scale is used to determine relative height.
+threshold, but scale is used to determine relative height. The height of the blob is randomly scattered, with a maximum height of clust_size.

clust_scarcity and clust_num_ores are ignored.

This is essentially an improved version of the so-called "stratus" ore seen in some unofficial mods.

blob

-

Creates a deformed sphere of ore according to 3d perlin noise described by +

Creates a deformed sphere of ore according to 3d perlin noise described by noise_params. The maximum size of the blob is clust_size, and clust_scarcity has the same meaning as with the scatter type.

`vein

@@ -1314,7 +1314,7 @@ return damage

Client predicts damage based on damage groups. Because of this, it is able to give an immediate response when an entity is damaged or dies; the response is pre-defined somehow (e.g. by defining a sprite animation) (not implemented; -TODO).
+TODO). Currently a smoke puff will appear when an entity dies.

The group immortal completely disables normal damage.

Entities can define a special armor group, which is punch_operable. This @@ -2281,6 +2281,10 @@ and minetest.auth_reload call the authetification handler.

  • Creates a detached inventory. If it already exists, it is cleared.
  • +
  • minetest.do_item_eat(hp_change, replace_with_item, itemstack, user, pointed_thing): returns left over ItemStack +
  • Formspec

  • minetest.item_eat(hp_change, replace_with_item)
  • @@ -2753,7 +2761,7 @@ end

    Class reference

    NodeMetaRef

    -

    Node metadata: reference extra data and functionality stored in a node.
    +

    Node metadata: reference extra data and functionality stored in a node. Can be gotten via minetest.get_meta(pos).

    Methods

    NoteTimerRef

    -

    Node Timers: a high resolution persistent per-node timer.
    +

    Node Timers: a high resolution persistent per-node timer. Can be gotten via minetest.get_node_timer(pos).

    Methods