Difference between revisions of "pointed thing"

From Minetest Developer Wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
{type="object", ref=ObjectRef}
 
{type="object", ref=ObjectRef}
 
</source>
 
</source>
 +
 +
[[File:pointed_thing_1.png|200px]]
 +
 +
Node coordinates are <code>(49,6,-13)</code>, <code>pointed_thing</code> is <code>{type = "node", above = {y = 7, x = 49, z = -13}, under = {y = 6, x = 49, z = -13}}</code>
 +
 +
[[File:pointed_thing_2.png|200px]]
 +
 +
Node coordinates are <code>(50,7,-13)</code>, <code>pointed_thing</code> is <code>{type = "node", above = {y = 7, x = 49, z = -13}, under = {y = 7, x = 50, z = -13}}</code>
 +
 +
[[File:pointed_thing_3.png|200px]]
 +
 +
Node coordinates are <code>(49,7,-14)</code>, <code>pointed_thing</code> is <code>{type = "node", above = {y = 7, x = 49, z = -13}, under = {y = 7, x = 49, z = -14}}</code>
  
 
[[Category:Types]]
 
[[Category:Types]]

Revision as of 19:42, 28 November 2012

Table {type = …, under = …, above = …, ref = …}

  • type
  • "nothing"
  • "node"
  • "object"

Examples

{type="nothing"}
{type="node", under=pos, above=pos}
{type="object", ref=ObjectRef}

pointed thing 1.png

Node coordinates are (49,6,-13), pointed_thing is {type = "node", above = {y = 7, x = 49, z = -13}, under = {y = 6, x = 49, z = -13}}

pointed thing 2.png

Node coordinates are (50,7,-13), pointed_thing is {type = "node", above = {y = 7, x = 49, z = -13}, under = {y = 7, x = 50, z = -13}}

pointed thing 3.png

Node coordinates are (49,7,-14), pointed_thing is {type = "node", above = {y = 7, x = 49, z = -13}, under = {y = 7, x = 49, z = -14}}