Guidebook.md
No reviews yet
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.
Provides a framework or library for other mods to use.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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)
- 
- 
- 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!
Commands
Export or load markdown books.
-
Use: /guidebook export
- to export to: btafolder/guidebook/exported/
-
Use: /guidebook load
- Load from: btafolder/guidebook/load/
Showcase
Download the zip with the files in the release page
https://github.com/user-attachments/assets/d2f9fe57-74f7-433e-8f00-0848fc137571
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers