📦 Minecraft Raw JSON text builder.
📖 Documentation |
---|
npm i rawjsonbuilder
import { text, TextComponent } from "rawjsonbuilder"; // ESM
// OR
const { text, TextComponent } = require("rawjsonbuilder"); // CommonJS
text("Hello World!", "black")
.toRawString(); // §0Hello World!
const builder = new TextComponent()
.setText("Hello World!")
.setBold()
.addSpace()
.addExtra(
text("Nice to meet you!", "red")
)
.toRawString(); // §lHello World! §cNice to meet you!
Keybind
KeybindComponent
NBTComponent Fabric
NBT path
Interpret
NBTComponent
Parse Raw String to Raw JSON
Raw String
Raw JSON
ScoreComponent Fabric
Name
Objective
Value
ScoreComponent
SelectorComponent Fabric
Selector
SelectorComponent
TextComponent Fabric
Text
Color
TextComponent
TranslateComponent Fabric
Translate
Translate variables
TranslateComponent
Generated using TypeDoc
KeybindComponent Fabric
Keybind