/Scriptive

Minecraft Chat Component Format

Primary LanguageJavaMIT LicenseMIT

banner

Java Implementation for Minecraft Java Edition Chat Component Format.

LICENSE RELEASE


Since version 1.7.2, Minecraft has two separate text formatting systems. The newer text component system is used in many specific contexts expecting formatted text, including chat messages, written books, death messages, window titles, and the like.

Scriptive is a library for easy creation and serialization of such text components with support for the latest Minecraft versions.

Features

  • Comprehensive support for all formating options
  • Lightweight and intuitive
  • Supports new NBT serialization introduced in 1.20.3 version of Minecraft
  • Supports JSON serialization
  • Provides custom format of components suitable for user-input
  • Supports terminal format

Modules

Importing

Gradle

repositories {
    maven {
        name = "machinemcRepositoryReleases"
        url = uri("https://repo.machinemc.org/releases")
    }
}

dependencies {
    implementation("org.machinemc:scriptive-core:VERSION")
}

Maven

<repositories>
    <repository>
        <id>machinemc-repository-releases</id>
        <name>MachineMC Repository</name>
        <url>https://repo.machinemc.org/releases</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.machinemc</groupId>
        <artifactId>scriptive-core</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>

Other modules can be added as another dependency.

License

Scriptive is free software licensed under the MIT license.