Skip to content

Commit 11dbcc5

Browse files
committed
Lua API: update
1 parent fdc5c79 commit 11dbcc5

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

lua_api.html

+31-7
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,18 @@ <h2 id="registered-definitions-of-stuff">Registered definitions of stuff</h2>
664664
<li>added to <code>minetest.registered_items[name]</code></li>
665665
</ul>
666666
</li>
667+
<li>
668+
<p><code>minetest.register_ore(ore definition)</code></p>
669+
<ul>
670+
<li>added to <code>minetest.registered_ores</code></li>
671+
</ul>
672+
</li>
673+
<li>
674+
<p><code>minetest.register_decoration(decoration definition)</code></p>
675+
<ul>
676+
<li>added to <code>minetest.registered_decorations</code></li>
677+
</ul>
678+
</li>
667679
</ul>
668680
<p>Note that in some cases you will stumble upon things that are not contained
669681
in these tables (e.g. when a mod has been removed). Always check for
@@ -2169,6 +2181,10 @@ <h3 id="environment-access">Environment access</h3>
21692181
should be applied to the default config or current active config</li>
21702182
</ul>
21712183
</li>
2184+
<li><code>minetest.generate_ores(vm)</code></li>
2185+
<li>Generate all registered ores within the VoxelManip specified by <code>vm</code>.</li>
2186+
<li><code>minetest.generate_decorations(vm)</code></li>
2187+
<li>Generate all registered decorations within the VoxelManip specified by <code>vm</code>.</li>
21722188
<li><code>minetest.clear_objects()</code><ul>
21732189
<li>clear all objects in the environments</li>
21742190
</ul>
@@ -2669,31 +2685,39 @@ <h3 id="global-objects">Global objects</h3>
26692685
<h3 id="global-tables">Global tables</h3>
26702686
<ul>
26712687
<li><code>minetest.registered_items</code><ul>
2672-
<li>List of registered items, indexed by name</li>
2688+
<li>Map of registered items, indexed by name</li>
26732689
</ul>
26742690
</li>
26752691
<li><code>minetest.registered_nodes</code><ul>
2676-
<li>List of registered node definitions, indexed by name</li>
2692+
<li>Map of registered node definitions, indexed by name</li>
26772693
</ul>
26782694
</li>
26792695
<li><code>minetest.registered_craftitems</code><ul>
2680-
<li>List of registered craft item definitions, indexed by name</li>
2696+
<li>Map of registered craft item definitions, indexed by name</li>
26812697
</ul>
26822698
</li>
26832699
<li><code>minetest.registered_tools</code><ul>
2684-
<li>List of registered tool definitions, indexed by name</li>
2700+
<li>Map of registered tool definitions, indexed by name</li>
26852701
</ul>
26862702
</li>
26872703
<li><code>minetest.registered_entities</code><ul>
2688-
<li>List of registered entity prototypes, indexed by name</li>
2704+
<li>Map of registered entity prototypes, indexed by name</li>
26892705
</ul>
26902706
</li>
26912707
<li><code>minetest.object_refs</code><ul>
2692-
<li>List of object references, indexed by active object id</li>
2708+
<li>Map of object references, indexed by active object id</li>
26932709
</ul>
26942710
</li>
26952711
<li><code>minetest.luaentities</code><ul>
2696-
<li>List of Lua entities, indexed by active object id</li>
2712+
<li>Map of Lua entities, indexed by active object id</li>
2713+
</ul>
2714+
</li>
2715+
<li><code>minetest.registered_ores</code><ul>
2716+
<li>List of registered ore definitions.</li>
2717+
</ul>
2718+
</li>
2719+
<li><code>minetest.registered_decorations</code><ul>
2720+
<li>List of registered decoration definitions.</li>
26972721
</ul>
26982722
</li>
26992723
</ul>

0 commit comments

Comments
 (0)