Skip to content
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

Open
wants to merge 6 commits into
base: nextgen
Choose a base branch
from
Open

Conversation

sqlerrorthing
Copy link
Contributor

Automatically fills in the books.

@1zun4 1zun4 added this to the 0.23.0 milestone Dec 29, 2024
@1zun4
Copy link
Member

1zun4 commented Dec 29, 2024

The module is missing a module description.

Comment on lines 62 to 70
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()
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how?

@sqlerrorthing
Copy link
Contributor Author

sqlerrorthing commented Dec 29, 2024

The module is missing a module description.

i know, ill add later
added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants