Skip to content

Commit d7ce09f

Browse files
committed
Updated docs
1 parent f08c1a8 commit d7ce09f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/api.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
- [bot.activateEntityAt(entity, position)](#botactivateentityatentity-position)
312312
- [bot.consume()](#botconsume)
313313
- [bot.fish()](#botfish)
314-
- [bot.activateItem(offHand=false)](#botactivateitemoffhandfalse)
314+
- [bot.activateItem(offHand=false, DegreeX, DegreeY)](#botactivateitemoffhandfalse)
315315
- [bot.deactivateItem()](#botdeactivateitem)
316316
- [bot.useOn(targetEntity)](#botuseontargetentity)
317317
- [bot.attack(entity, swing = true)](#botattackentity-swing--true)
@@ -1996,12 +1996,15 @@ This function returns a `Promise`, with `void` as its argument when fishing ends
19961996
Use fishing rod
19971997

19981998

1999-
#### bot.activateItem(offHand=false)
1999+
#### bot.activateItem(offHand=false, DegreeX, DegreeY)
20002000

20012001
Activates the currently held item. This is how you eat, shoot bows, throw an
20022002
egg, activate firework rockets, etc.
20032003

20042004
Optional parameter is `false` for main hand and `true` for off hand.
2005+
* `DegreeX` Optional defaults to bot's current pitch
2006+
* `DegreeY` Optional defaults to bot's current yaw
2007+
20052008

20062009
#### bot.deactivateItem()
20072010

0 commit comments

Comments
 (0)