Minecraft Datapack Schema Parent

A parent pom for Minecraft datapacks.

License

License

MIT
Categories

Categories

Data Minecraft Business Logic Libraries
GroupId

GroupId

com.github.rremer
ArtifactId

ArtifactId

minecraft-datapack-schema-parent
Last Version

Last Version

1.13.2-1
Release Date

Release Date

Type

Type

pom
Description

Description

Minecraft Datapack Schema Parent
A parent pom for Minecraft datapacks.
Project URL

Project URL

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

Project Organization

Salesforce OSS
Source Code Management

Source Code Management

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

Download minecraft-datapack-schema-parent

How to add to project

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

Dependencies

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

Project Modules

  • schema

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.13.2-1