diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-01-02 16:26:40 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-02 16:26:40 +0200 |
commit | ab57fbe4caa5a8d74ec08c7a7f3d2cb04faf9de0 (patch) | |
tree | aca3bacd26a6f6e1d16980b9b0169a9dfb44472e /data/mods/default | |
parent | 56f55ab1af941c5a7c7a7aef4217189f9f2d1680 (diff) | |
download | minetest-ab57fbe4caa5a8d74ec08c7a7f3d2cb04faf9de0.tar.gz minetest-ab57fbe4caa5a8d74ec08c7a7f3d2cb04faf9de0.tar.bz2 minetest-ab57fbe4caa5a8d74ec08c7a7f3d2cb04faf9de0.zip |
Add name field to registered entities
Diffstat (limited to 'data/mods/default')
-rw-r--r-- | data/mods/default/init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index ac3ef1b8f..073483d4e 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -239,6 +239,7 @@ -- -- Registered entities: -- - Functions receive a "luaentity" as self: +-- - It has the member .name, which is the registered name ("mod:thing") -- - It has the member .object, which is an ObjectRef pointing to the object -- - The original prototype stuff is visible directly via a metatable -- - Callbacks: |