aboutsummaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-03-26 13:15:10 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-03-26 13:15:10 +0100
commite0b4859e7c904232253905571721003a2cb76040 (patch)
tree4be2765c3537adc52f5f4f0f2e6b436e153c129f /doc/client_lua_api.txt
parent22f73e9f279db40a7357ca955c279ffd5dd881d8 (diff)
downloaddragonfireclient-e0b4859e7c904232253905571721003a2cb76040.tar.xz
Add ClientObjectRef:remove
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 20ae5e9d5..83f70bf99 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -94,7 +94,7 @@ Mod directory structure
The format is documented in `builtin/settingtypes.txt`.
It is parsed by the main menu settings dialogue to list mod-specific
-settings in the "Clientmods" category.
+settings in the "Clientmods" category.
### modname
@@ -700,7 +700,7 @@ Call these functions only at load time!
* Registers a chatcommand `command` to manage a list that takes the args `del | add | list <param>`
* The list is stored comma-seperated in `setting`
* `desc` is the description
- * `add` adds something to the list
+ * `add` adds something to the list
* `del` del removes something from the list
* `list` lists all items on the list
* `minetest.register_on_chatcommand(function(command, params))`
@@ -1051,7 +1051,7 @@ Passed to `HTTPApiTable.fetch` callback. Returned by
* `minetest.register_cheat(name, category, setting | function)`
* Register an entry for the cheat menu
* If the Category is nonexistant, it will be created
- * If the 3rd argument is a string it will be interpreted as a setting and toggled
+ * If the 3rd argument is a string it will be interpreted as a setting and toggled
when the player selects the entry in the cheat menu
* If the 3rd argument is a function it will be called
when the player selects the entry in the cheat menu
@@ -1400,7 +1400,8 @@ This is basically a reference to a C++ `GenericCAO`.
* `get_max_hp()`: returns the maximum heath
* `punch()`: punches the object
* `rightclick()`: rightclicks the object
-
+* `remove()`: removes the object permanently
+
### `Raycast`
A raycast on the map. It works with selection boxes.
@@ -1792,7 +1793,7 @@ A reference to a C++ InventoryAction. You can move, drop and craft items in all
* it specifies how many items to drop / craft / move
* `0` means move all items
* default count: `0`
-
+
#### example
`local move_act = InventoryAction("move")
move_act:from("current_player", "main", 1)
@@ -1807,7 +1808,7 @@ A reference to a C++ InventoryAction. You can move, drop and craft items in all
drop_act:apply()
`
* e.g. In first hotbar slot there are tree logs: Move one to craft field, then craft wood out of it and immediately drop it
-
-
+
+