File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1325,6 +1325,9 @@ For helper functions see [Spatial Vectors].
1325
1325
1326
1326
* `{type="nothing"}`
1327
1327
* `{type="node", under=pos, above=pos}`
1328
+ * Indicates a pointed node selection box.
1329
+ * `under` refers to the node position behind the pointed face.
1330
+ * `above` refers to the node position in front of the pointed face.
1328
1331
* `{type="object", ref=ObjectRef}`
1329
1332
1330
1333
Exact pointing location (currently only `Raycast` supports these fields):
@@ -4543,7 +4546,10 @@ Item handling
4543
4546
* `minetest.inventorycube(img1, img2, img3)`
4544
4547
* Returns a string for making an image of a cube (useful as an item image)
4545
4548
* `minetest.get_pointed_thing_position(pointed_thing, above)`
4546
- * Get position of a `pointed_thing` (that you can get from somewhere)
4549
+ * Returns the position of a `pointed_thing` or `nil` if the `pointed_thing`
4550
+ does not refer to a node or entity.
4551
+ * If the optional `above` parameter is true and the `pointed_thing` refers
4552
+ to a node, then it will return the `above` position of the `pointed_thing`.
4547
4553
* `minetest.dir_to_facedir(dir, is6d)`
4548
4554
* Convert a vector to a facedir value, used in `param2` for
4549
4555
`paramtype2="facedir"`.
You can’t perform that action at this time.
0 commit comments