Minecraft Datapack Schema

Schema for Minecraft datapacks

License

License

MIT
Categories

Categories

Data Minecraft Business Logic Libraries
GroupId

GroupId

com.github.rremer
ArtifactId

ArtifactId

minecraft-datapack-schema
Last Version

Last Version

1.14.4-3
Release Date

Release Date

Type

Type

jar
Description

Description

Minecraft Datapack Schema
Schema for Minecraft datapacks
Project URL

Project URL

https://rremer.github.io/minecraft-datapack-schema/1.14.4-3
Project Organization

Project Organization

Royce Remer
Source Code Management

Source Code Management

https://github.com/rremer/minecraft-datapack-schema

Download minecraft-datapack-schema

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rremer/minecraft-datapack-schema/ -->
<dependency>
    <groupId>com.github.rremer</groupId>
    <artifactId>minecraft-datapack-schema</artifactId>
    <version>1.14.4-3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rremer/minecraft-datapack-schema/
implementation 'com.github.rremer:minecraft-datapack-schema:1.14.4-3'
// https://jarcasting.com/artifacts/com.github.rremer/minecraft-datapack-schema/
implementation ("com.github.rremer:minecraft-datapack-schema:1.14.4-3")
'com.github.rremer:minecraft-datapack-schema:jar:1.14.4-3'
<dependency org="com.github.rremer" name="minecraft-datapack-schema" rev="1.14.4-3">
  <artifact name="minecraft-datapack-schema" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rremer', module='minecraft-datapack-schema', version='1.14.4-3')
)
libraryDependencies += "com.github.rremer" % "minecraft-datapack-schema" % "1.14.4-3"
[com.github.rremer/minecraft-datapack-schema "1.14.4-3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

minecraft-datapack-schema

Build Status Maven Central License Keybase PGP

Schema for Minecraft Datapacks.

Usage

In your maven project with oss.sonatype.org as an upstream repository, point at the schema and and add a <validation> for each type of resource you have. There are currently schemas for advancement, loot_table, recipe, tag, or mcmeta:

  <properties>
    <version.json-schema-validator>1.2.0</version.json-schema-validator>
    <schema.url>https://rremer.github.io/minecraft-datapack-schema/1.14.4-3</schema.url>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>com.groupon.maven.plugin.json</groupId>
        <artifactId>json-schema-validator</artifactId>
        <version>${version.json-schema-validator}</version>
        <executions>
          <execution>
            <phase>test</phase>
            <goals>
              <goal>validate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <validations>
            <validation>
              <directory>${project.basedir}/src/main/resources/recipes</directory>
              <jsonSchema>${schema.url}/recipe.schema.json</jsonSchema>
              <includes>
                <include>**/*.json</include>
              </includes>
            </validation>
          </validations>
        </configuration>
      </plugin>
    </plugins>
  </build>

Building

mvn clean install

Releasing

mvn versions:set -DnewVersion=1.14.4-4
mvn clean deploy -Dparameter.gpg.skip=false
mvn site site-deploy

Versioning

A version number of this project's artifacts is built as <minecraft.version>-<project.version>, where:

  • minecraft.version is a version of minecraft (1.13.2, 1.14.4, ...)
  • project.version is an increment for this project to release against a version of minecraft (1,2,3, ...)

Versions

Version
1.14.4-3
1.14.4-2
1.14.4-1
1.13.2-5
1.13.2-4
1.13.2-2
1.13.2-1