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

[Bug] 当服务器使用Husk系列插件时无法翻页 #244

Open
MSCMDD opened this issue Oct 2, 2024 · 9 comments
Open

[Bug] 当服务器使用Husk系列插件时无法翻页 #244

MSCMDD opened this issue Oct 2, 2024 · 9 comments
Labels
bug Something isn't working or can't work well help wanted Extra attention is needed minecraft Issues about Minecraft Mod instead of Core Framework text Issues about text engine or rich text support

Comments

@MSCMDD
Copy link

MSCMDD commented Oct 2, 2024

[Bug] 当服务器使用Husk系列插件时无法翻页

@MSCMDD
Copy link
Author

MSCMDD commented Oct 2, 2024

第一步:安装HuskHomes插件
第二步:设定足够多的地表
第三步:点击页码

当未安装ModernUI时翻页可以正常进行
当安装ModernUI后无法翻页且无悬停文字描述

@BloCamLimb
Copy link
Owner

请你补充下面信息

  • Minecraft 版本
  • ModernUI 版本
  • Forge/Fabric 版本

请你给我一个有插件的服务器用于测试,或者发送相关文本的SNBT格式

@BloCamLimb BloCamLimb added the help wanted Extra attention is needed label Oct 2, 2024
@MSCMDD
Copy link
Author

MSCMDD commented Oct 3, 2024

Minecraft 1.21.1
ModernUI 3.11.0.4 平台Farbic

服务器地址server.mscaome.top

我发现当文字长度大于1个字符的时候才能点击

@MSCMDD
Copy link
Author

MSCMDD commented Oct 3, 2024

  list_previous_page_button: '[◀](white show_text=&7上一页 run_command=%2% %1%) '
  list_next_page_button: ' [▶](white show_text=&7下一页 run_command=%2% %1%)'

修改为

  list_previous_page_button: '[◀-](white show_text=&7上一页 run_command=%2% %1%) '
  list_next_page_button: ' [-▶](white show_text=&7下一页 run_command=%2% %1%)'

之后就能正常点击

@MSCMDD
Copy link
Author

MSCMDD commented Oct 3, 2024

emmm,大佬,SNBT怎么获取呢

@BloCamLimb
Copy link
Owner

不推荐使用颜色代码,用下面的方法没有问题

/tellraw @a {"text":"◀","hoverEvent":{"action":"show_text","contents":{"text":"上一页","color":"#30A0E0"}}}

@MSCMDD
Copy link
Author

MSCMDD commented Oct 3, 2024

@BloCamLimb
Copy link
Owner

我看了一下,是空格后的第一个字符不被处理,例如“Click Button”,若"Button"有悬停文字,则鼠标悬停在'B'上不会处理,后面的字符才可以。下个版本会修复。

@BloCamLimb BloCamLimb added bug Something isn't working or can't work well minecraft Issues about Minecraft Mod instead of Core Framework text Issues about text engine or rich text support labels Oct 3, 2024
@MSCMDD
Copy link
Author

MSCMDD commented Oct 4, 2024

大佬辛苦了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or can't work well help wanted Extra attention is needed minecraft Issues about Minecraft Mod instead of Core Framework text Issues about text engine or rich text support
Projects
None yet
Development

No branches or pull requests

2 participants