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

Fix and add chat format to books #5863

Merged
merged 4 commits into from
Aug 10, 2023
Merged

Fix and add chat format to books #5863

merged 4 commits into from
Aug 10, 2023

Conversation

TheLimeGlass
Copy link
Contributor

@TheLimeGlass TheLimeGlass commented Jul 28, 2023

Description

Fixes and adds Skript's chat format to books.

The issues faced in ExprBookPages were;

  • player's tool returns ItemStack now, and ExprBookPages only accepted ItemType meaning it would never actually apply to the correct ItemStack as it was converting to a new ItemType.
  • When applying books to an already written book, Minecraft never would have updated it. The title and the author of the book NEEDS to be set in order for Minecraft to consider the book "signed".
  • The ADD changer is supported in the acceptChange method, but has an assert false in the change method. The ADD changer was not working because of this.

New addition example: set page 1 of player's tool to "<tooltip:<##00ff00>you hovered over me!>&lTesting example!"

Labeling as 2.7 due to #5025 adding the changers in 2.7 but not working properly.


Target Minecraft Versions: 1.16+ for the Skript chat format.
Requirements: Paper for the Skript chat format.
Related Issues: #5709

@TheLimeGlass TheLimeGlass added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. feature Pull request adding a new feature. 2.7 Targeting a 2.7.X version release labels Jul 28, 2023
@TheLimeGlass TheLimeGlass added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jul 28, 2023
@TheLimeGlass TheLimeGlass merged commit 0590c6a into master Aug 10, 2023
@TheLimeGlass TheLimeGlass deleted the enhancement/books branch August 10, 2023 05:02
TheLimeGlass added a commit that referenced this pull request Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Targeting a 2.7.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants