Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
component:navigation [2016/11/19 08:39]
typheus
component:navigation [2016/11/19 10:27]
typheus
Line 15: Line 15:
  
   Finds all [[block:​waypoint|waypoint blocks]] within the specified range. ​     Finds all [[block:​waypoint|waypoint blocks]] within the specified range. ​  
-This returns a table that contains other tables. The top table has only numbered indiceseach row containing a table with labeled rows, each describing ​various aspects of the beacon: "​position",​ "​redstone",​ "​label"​.+This returns a table that contains other tables. The top table has only numbered indices ​corresponding to each detected beacon. In each of this entries is another ​table, each row various aspects of the specified ​beacon: "​position",​ "​redstone",​ "​label"​.
  
   * position returns a table with numbered indices in which 1 is x, 2 is y, and 3 is z. These numbers are the distance from the navigation component to the beacon in terms of block coordinates.   * position returns a table with numbered indices in which 1 is x, 2 is y, and 3 is z. These numbers are the distance from the navigation component to the beacon in terms of block coordinates.
Line 21: Line 21:
   * label returns a string that is the label of the beacon you can set by right clicking on it.      * label returns a string that is the label of the beacon you can set by right clicking on it.   
   ​   ​
- +Below is an example of how the tables are set up. A single beacon'​s results are shown. 
-^table: main  ||| | +^table: main  ||| | 
-^table: 1  ^ table: position ​    ^ 1: | number: x distance | +^table: 1  ^ table: position ​    ^ 1: | number: x distance | 
-|:::   |:::  ^ 2: | number: y distance | +|:::   |:::  ^ 2: | number: y distance | 
-|:::​ |:::​ ^ 3: | number: z distance | +|::: |::: ^ 3: | number: z distance | 
-|::: ^ redstone | number: redstone strength || +|::: ^ redstone || number: redstone strength || 
-|::: ^ label | string: beacon label ||+|::: ^ label || string: beacon label ||