-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Nextgen/BookBot) #5076
base: nextgen
Are you sure you want to change the base?
feat(Nextgen/BookBot) #5076
Conversation
The module is missing a module description. |
src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/player/invcleaner/ItemSlot.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/misc/ModuleBookBot.kt
Outdated
Show resolved
Hide resolved
val book = findInventorySlot { | ||
val component = it.get(DataComponentTypes.WRITABLE_BOOK_CONTENT) ?: return@findInventorySlot false | ||
return@findInventorySlot it.item == Items.WRITABLE_BOOK && component.pages.isEmpty() | ||
} ?: run { | ||
enabled = false | ||
return@tickHandler | ||
} | ||
|
||
book.performSwap(to = HotbarItemSlot(player.inventory.selectedSlot)).performAction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use ScheduleInventoryActionEvent for cases like this and allow to put inventory constraints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how?
src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/misc/ModuleBookBot.kt
Outdated
Show resolved
Hide resolved
|
Automatically fills in the books.