Lua_api.txt: Clarify entity 'initial_properties' and related deprecation (#7596)
authorParamat <paramat@users.noreply.github.com>
Sun, 29 Jul 2018 21:07:55 +0000 (22:07 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Jul 2018 21:07:55 +0000 (22:07 +0100)
doc/lua_api.txt

index 1f103c8536126eb84b4404e7419fba78bb68144a..763393e3494202cc26b4e5a9e1edea1cfd887036 100644 (file)
@@ -5280,10 +5280,15 @@ Entity definition
 Used by `minetest.register_entity`.
 
     {
-    --  Deprecated: Everything in object properties is read directly from here
-
-        initial_properties = --[[<initial object properties>]],
-
+        initial_properties = {
+            visual = "mesh",
+            mesh = "boats_boat.obj",
+            ...,
+        },
+    --  ^ A table of object properties, see the `Object properties` section.
+    --  ^ Object properties being read directly from the entity definition
+    --    table is deprecated. Define object properties in this
+    --    `initial_properties` table instead.
         on_activate = function(self, staticdata, dtime_s),
         on_step = function(self, dtime),
         on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir),