Difference between revisions of "pointed thing"

From Minetest Developer Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{UnofficialLua}}
 
{{DISPLAYTITLE:pointed_thing}}
 
{{DISPLAYTITLE:pointed_thing}}
Table <source enclose="none">{type = …, under = …, above = …, ref = …}</source>
 
* <code>type</code>
 
:* <source enclose="none">"nothing"</source>
 
:* <source enclose="none">"node"</source>
 
:* <source enclose="none">"object"</source>
 
* <code>under</code> — [[position]] or <source enclose="none">nil</source>
 
* <code>above</code> — [[position]] or <source enclose="none">nil</source>
 
* <code>ref</code> — [[ObjectRef]] or <source enclose="none">nil</source>
 
  
 
== Examples ==
 
== Examples ==
<source>
+
 
{type="nothing"}
+
{| class="wikitable"
{type="node", under=pos, above=pos}
+
!image
{type="object", ref=ObjectRef}
+
!Node coordinates
</source>
+
!pointed_thing.above
 +
!pointed_thing.under
 +
|-
 +
| [[File:pointed_thing_1.png|200px]]
 +
| <code>(49,6,-13)</code>
 +
| <code>{x = 49, y = 7, z = -13}</code>
 +
| <code>{x = 49, y = 6, z = -13}</code>
 +
|-
 +
| [[File:pointed_thing_2.png|200px]]
 +
 
 +
| <code>(50,7,-13)</code>
 +
| <code>{x = 49, y = 7, z = -13}</code>
 +
| <code>{x = 50, y = 7, z = -13}</code>
 +
|-
 +
| [[File:pointed_thing_3.png|200px]]
 +
 
 +
| <code>(49,7,-14)</code>
 +
| <code>{x = 49, y = 7, z = -13}</code>
 +
| <code>{x = 49, y = 7,  z = -14}</code>
 +
|}
 +
[[Category:Types]]

Latest revision as of 19:44, 25 January 2023

Mbox warning.png This page contains unofficial, low-quality Lua API documentation and is likely to be outdated or wrong. Do not rely on it!
For the official and up-to-date documentation, see Lua API Documentation.
Mbox warning.png This page has been proposed for deletion for the following reason: "Contains unofficial and potentially outdated, redundant and inconsistent Lua API information"
If you don't think that this page should be deleted, please explain why on the talk page.


Examples

image Node coordinates pointed_thing.above pointed_thing.under
pointed thing 1.png (49,6,-13) {x = 49, y = 7, z = -13} {x = 49, y = 6, z = -13}
pointed thing 2.png (50,7,-13) {x = 49, y = 7, z = -13} {x = 50, y = 7, z = -13}
pointed thing 3.png (49,7,-14) {x = 49, y = 7, z = -13} {x = 49, y = 7, z = -14}