跳到正文

Guidebook.md

作者:Garkatron

Add Markdown guides to BTA, allowing modders to efficiently create and format guides. Markdown books were added to BTA, allowing users to create, edit, and organize complete, structured Markdown-compatible documents.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Guidebook.md

Helps BTA modders create mod guides quickly and easily using Markdown with extra features

How to Use?
Create a MDBookScreen inherited class.
Load config from asset path, include .md files.
Use as a normal screen, opened from a trigger.

Formats

Use < & > chars for color codes:

- 0 = &0Black
- 1 = &1Dark Blue
- 2 = &2Dark Green
- 3 = &3Dark Aqua
- 4 = &4Dark Red
- 5 = &5Dark Purple
- 6 = &6Gold
- 7 = &7Gray
- 8 = &8Dark Gray
- 9 = &9Blue
- a = &aGreen
- b = &bAqua
- c = &cRed
- d = &dLight Purple
- e = &eYellow
- f = &fWhite
- s = &sShadow
- r = Reset

Syntax

Regular &3Markdown syntax adapted for &6BTA Guidebook format:
# H1
## H2
### H3
#### H4
##### H5
###### H6
* Unordered List
- Unordered List
1. Ordered List

Specials

**Images**
- [text](/assets/modid/textures/path/to/img.png)(width,height,type)
- ![slot](modid:item/name)
- ![workbench](empty,empty,empty,empty,empty,empty,empty,empty,empty, empty)
  • Width & Height in pixels
  • type = default | icon or (no text) to use default option
  • The workbench last slot it’s for output item

How to use?

Markdown guidebook

public class MyBook extends MarkdownGuidebook<MDPage> {

    public IntroBook() {
        String path = "/assets/modid/markdown/mybook/";
        config = BookConfig.fromJsonResource(getClass(), path + "config.json");

        DecimalFormat formatter = new DecimalFormat("000");
        for (int i = 0; i<11; i++) {
            String fileName = "page_" + formatter.format(i + 1) + ".md";

            loadMarkdownPages(path + fileName);
        }
    }
}

Display markdown

_Check superclass for more info._

public class MyMDScreen extends MDScreen {
    public MyMDScreen() {
        currentPage = MarkdownCompiler.compile("/assets/modid/markdown/path/to/your/file.md", getClass());
    }
}

In-Game Markdown Editor

Use the editable book in-game and export the Markdown content to use in your project!
Or use it to share information with your friends in your world!

image
image

Commands

Export or load markdown books.

  • Use: /guidebook export </li> <li>to export to: btafolder/guidebook/exported/<title></li> </ul> <ul> <li>Use: /guidebook load <title></li> <li>Load from: btafolder/guidebook/load/<title></li> </ul> <h3>Showcase</h3> <p>Download the zip with the files in the release page</p> <p><img decoding="async" width="1464" height="879" alt="image" src="https://github.com/user-attachments/assets/d87392c0-9c10-44e0-878c-a8926bffca7f" /></p> <p>https://github.com/user-attachments/assets/d2f9fe57-74f7-433e-8f00-0848fc137571</p> </div> </section> <section class="panel comments" id="comments"> <h2>评论 <small class="muted"></small> </h2> <p><a class="btn" href="https://qqmc.com/login/?redirect=https%3A%2F%2Fqqmc.com%2Fmod%2Fguidebook-md%2F%23comments">登录后评论和评分</a></p> </section> <section class="more-works"> <div class="section-head"> <h2>Garkatron 的其他作品</h2> <a href="https://qqmc.com/creator/garkatron/">查看全部 →</a> </div> <div class="pack-grid"> <a class="pack-card" href="https://qqmc.com/mod/fishing-additions-for-bta/"> <img class="pack-icon" src="https://cdn.modrinth.com/data/saX0vYwi/a75b78add2968dc368d2a9a6556bcf8b2fbe7b19_96.webp" alt="" width="64" height="64" loading="lazy" referrerpolicy="no-referrer"> <div class="pack-card-body"> <h3>Fishing Additions</h3> <div class="by">by Garkatron</div> <p class="summary">Exciting Additions to Fishing in Minecraft Discover a variety of new fish and a unique fishing net block! Plus, enjoy upgraded fishing rods for a whole new fishing experience. Discover the Depths!</p> <div class="pack-meta"> <span class="chip chip-type">模组</span> <span class="chip chip-loader chip-fabric">Fabric</span> </div> <div class="pack-stats"> <span title="下载量"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v11m0 0-4-4m4 4 4-4M5 19h14"/></svg>1,227</span> <span title="最近更新"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8"/><path d="M12 8v4l3 2"/></svg>2 年前</span> <span>Modrinth</span> </div> </div> </a> <a class="pack-card" href="https://qqmc.com/mod/stanleylib/"> <img class="pack-icon" src="https://cdn.modrinth.com/data/n9muS7Jh/ab0f16b5de2e4f8eef8d3008fb97aacf96c11a8e.png" alt="" width="64" height="64" loading="lazy" referrerpolicy="no-referrer"> <div class="pack-card-body"> <h3>Stanley Temperature</h3> <div class="by">by Garkatron</div> <p class="summary">*A temperature mod and lib for bta*</p> <div class="pack-meta"> <span class="chip chip-type">模组</span> </div> <div class="pack-stats"> <span title="下载量"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v11m0 0-4-4m4 4 4-4M5 19h14"/></svg>1,038</span> <span title="最近更新"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8"/><path d="M12 8v4l3 2"/></svg>1 年前</span> <span>Modrinth</span> </div> </div> </a> <a class="pack-card" href="https://qqmc.com/mod/pain-scale/"> <img class="pack-icon" src="https://cdn.modrinth.com/data/GX89fGvB/9b5681dbd393343231d6a4cc4513791367da5b35.png" alt="" width="64" height="64" loading="lazy" referrerpolicy="no-referrer"> <div class="pack-card-body"> <h3>Pain Scale</h3> <div class="by">by Garkatron</div> <p class="summary">Dynamic Difficulty for BTA!</p> <div class="pack-meta"> <span class="chip chip-type">模组</span> </div> <div class="pack-stats"> <span title="下载量"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v11m0 0-4-4m4 4 4-4M5 19h14"/></svg>509</span> <span title="最近更新"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8"/><path d="M12 8v4l3 2"/></svg>1 年前</span> <span>Modrinth</span> </div> </div> </a> <a class="pack-card" href="https://qqmc.com/mod/backtothefoodture/"> <img class="pack-icon" src="https://cdn.modrinth.com/data/all9BCck/5bf930049eea7bcb924386a19fc162880b117a49_96.webp" alt="" width="64" height="64" loading="lazy" referrerpolicy="no-referrer"> <div class="pack-card-body"> <h3>BackToTheFoodTure</h3> <div class="by">by Garkatron</div> <p class="summary">A food backport mod for BTA!</p> <div class="pack-meta"> <span class="chip chip-type">模组</span> </div> <div class="pack-stats"> <span title="下载量"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v11m0 0-4-4m4 4 4-4M5 19h14"/></svg>452</span> <span title="最近更新"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8"/><path d="M12 8v4l3 2"/></svg>1 年前</span> <span>Modrinth</span> </div> </div> </a> </div> </section> </div> <aside class="pack-aside"> <div class="panel server-card is-plain"> <a class="btn btn-block btn-primary btn-lg" href="https://qqmc.com/go/167185/dl/0/" target="_blank" rel="noopener nofollow"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 5h5v5M19 5l-8 8M17 14v5H5V7h5"/></svg>前往 Modrinth 下载</a> </div> <div class="panel team-panel" id="team"> <h2>作者与团队</h2> <ul class="team-list"> <li><a href="https://qqmc.com/creator/garkatron/"> <img class="avatar" src="https://cdn.modrinth.com/user/9SQ2MlEZ/229c23ba675ebb5374cadb8ceb1aff53750b101a.png" alt="" width="32" height="32" loading="lazy" referrerpolicy="no-referrer"> <span>Garkatron<small>所有者</small></span> </a></li> </ul> </div> <div class="panel"> <h2>信息</h2> <ul class="info-list"> <li><span>下载量</span><span>178</span></li> <li><span>最近更新</span><span>1 年前</span></li> <li><span>首次发布</span><span>2025-08-04</span></li> <li><span>运行环境</span><span>客户端 / 服务端</span></li> <li><span>许可协议</span><span>CC0-1.0</span></li> <li><span>数据来源</span><span> <a class="chip chip-source" href="https://modrinth.com/mod/guidebook.md" target="_blank" rel="noopener nofollow">Modrinth</a> </span></li> </ul> </div> <details class="panel report-box" id="report" > <summary>举报这个资源</summary> <p class="note"><a href="https://qqmc.com/login/?redirect=https%3A%2F%2Fqqmc.com%2Fmod%2Fguidebook-md%2F%23report">登录</a>后可以举报。版权方投诉请看<a href="https://qqmc.com/copyright/">侵权投诉</a>。</p> </details> </aside> </div> </div> </main> <footer class="site-footer"> <div class="container"> <div class="about"> <div class="brand"><svg viewBox="0 0 32 32" width="24" height="24" aria-hidden="true"><path d="M16 2 30 9 16 16 2 9z" fill="#6bbb40"/><path d="M16 2 23 5.5 16 9 9 5.5z" fill="#7cc94f" opacity=".6"/><path d="M2 9 16 16v14L2 23z" fill="#8b5a3c"/><path d="M16 16 30 9v14l-14 7z" fill="#6b4329"/><path d="M2 9 16 16v4L2 13z" fill="#4c9a2a"/><path d="M16 16 30 9v4l-14 7z" fill="#3c7d20"/><path d="M5 14.5 7 15.5v2.5L5 17zM11 17.5 13 18.5v2l-2-1zM20 18l2-1v2.5l-2 1zM26 15l2-1v2l-2 1z" fill="#4c9a2a"/><path d="M6 20l2 1v2l-2-1zM10 24l2 1v2l-2-1zM21 24l2-1v2l-2 1zM25 20l2-1v2l-2 1z" fill="#000" opacity=".12"/></svg><span>青青方块</span></div> <p>中文 Minecraft 资源社区,收录整合包、模组、资源包、光影、数据包和地图,数据来自 Modrinth 与 CurseForge。</p> </div> <div> <h3>浏览</h3> <ul> <li><a href="https://qqmc.com/modpacks/">整合包</a></li> <li><a href="https://qqmc.com/mods/">模组</a></li> <li><a href="https://qqmc.com/resourcepacks/">资源包</a></li> <li><a href="https://qqmc.com/shaders/">光影</a></li> <li><a href="https://qqmc.com/datapacks/">数据包</a></li> <li><a href="https://qqmc.com/maps/">地图</a></li> <li><a href="https://qqmc.com/software/">软件</a></li> <li><a href="https://qqmc.com/translate/">AI 翻译</a></li> <li><a href="https://portal.akiracloud.net/">一键开服</a></li> </ul> </div> <div> <h3>关于</h3> <ul><li><a href="https://qqmc.com/copyright/">侵权投诉</a></li><li><a href="https://modrinth.com" target="_blank" rel="noopener">Modrinth</a></li><li><a href="https://www.curseforge.com/minecraft" target="_blank" rel="noopener">CurseForge</a></li></ul> </div> <div class="footer-bottom"> <span>© 2026 青青方块 · 非 Minecraft 官方产品,与 Mojang、Microsoft 无关</span> <span> </span> </div> </div> </footer> <dialog class="lightbox" id="lightbox"><img alt=""></dialog> <script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/craftline/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> <script data-wp-strategy="defer" defer id="craftline-js" src="https://qqmc.com/wp-content/themes/craftline/assets/site.js?ver=1793773891"></script> <script async data-wp-strategy="async" fetchpriority="low" id="comment-reply-js" src="https://qqmc.com/wp-includes/js/comment-reply.min.js?ver=7.1.4"></script> </body> </html> <!-- Performance optimized by Redis Object Cache. Learn more: https://wprediscache.com 使用 PhpRedis (v5.3.7) 从 Redis 检索了 1018 个对象(123 KB)。 -->