Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua
diff options
context:
space:
mode:
authorSilverSokolova <80606782+SilverSokolova@users.noreply.github.com>2024-10-07 17:02:46 -0500
committerGitHub <noreply@github.com>2024-10-07 17:02:46 -0500
commit11b91ff84f3dcce737ded182eeb442c4cd228a35 (patch)
tree24308afa4114cf915149524ad1b7a347ea0937a0 /doc/lua
parent03b7e3a22be9e1231072a5f6f8f559634f40f47f (diff)
Documentation: Fix player.setActionBarSlotLink doc and add player.currentState
Diffstat (limited to 'doc/lua')
-rw-r--r--doc/lua/openstarbound.md22
1 files changed, 20 insertions, 2 deletions
diff --git a/doc/lua/openstarbound.md b/doc/lua/openstarbound.md
index 23c0bbb..b5ceef0 100644
--- a/doc/lua/openstarbound.md
+++ b/doc/lua/openstarbound.md
@@ -394,9 +394,9 @@ Returns whether the specified item can enter the specified item bag.
Returns the contents of the specified action bar link slot's specified hand.
-#### `bool` player.setActionBarSlotLink(`String` itemBagName, `ItemDescriptor` item)
+#### `bool` player.setActionBarSlotLink(`int` slot, `String` hand, `ItemSlot` itemSlot)
-Returns whether the specified item can enter the specified item bag.
+Links the specified slot's hand to the specified itemSlot.
---
@@ -415,3 +415,21 @@ Sets the player's interact radius. This does not persist upon returning to the m
Returns all the recipes the player can craft with their currently held items and currencies.
---
+#### `String` player.currentState()
+
+Returns the player's current movement state.
+
+<details><summary><b>Player States</b></summary>
+idle<br>
+walk<br>
+run<br>
+jump<br>
+fall<br>
+swim<br>
+swimIdle<br>
+lounge<br>
+crouch<br>
+teleportIn<br>
+teleportOut<br>
+</details>
+---