-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add neofetch in Minecraft #108
Conversation
Signed-off-by: Liyan Zhao <return65535@qq.com>
Signed-off-by: Liyan Zhao <return65535@qq.com>
Signed-off-by: Liyan Zhao <return65535@qq.com>
Signed-off-by: Liyan Zhao <return65535@qq.com>
Signed-off-by: Liyan Zhao <return65535@qq.com>
Um... just call it "info fetch" or similar stuff, don't directly use |
how about |
sure |
and do rename files in the code according to the new name |
Signed-off-by: Liyan Zhao <return65535@qq.com>
literal("chars").executes { | ||
val renderer = MinecraftClient.getInstance().textRenderer | ||
val width = renderer.getWidth(" ") | ||
(0x20..0x7E) | ||
.map { it.toChar() } | ||
.groupBy { renderer.getWidth(it.toString()) } | ||
.forEach { | ||
println("${it.key}: ${it.value.joinToString("")}") | ||
} | ||
1 | ||
} | ||
} |
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.
What is this command used for?
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.
get chars that have the same width to generate ascii art
Minecraft font is not in the same width, we can only get the width from the client, and the algorithm to compute width would be so complicated and problematic. I think we should use network packets to compute on the client side, or use a monospaced font and add it to Minecraft using resourcepacks. But there are still some problems:
|
@lovexyn0827 @wafarm 两位有没有什么建议?关于等宽字符 |
# Conflicts: # build.gradle.kts # src/main/java/com/github/zly2006/reden/Reden.kt
Description/描述
Neofetch is a command-line system information tool, with an ascii logo of your system distro.
This PR add this in Minecraft
Related Issues/相关的 issue
n/a
Checklist/清单
Screenshots