Shield API allows mod authors to easily add shields with custom models.
Add this mod as dependency for your project.
build.gradle
repositories {
maven {
name = 'Modrinth'
url = 'https://api.modrinth.com/maven'
content {
includeGroup 'maven.modrinth'
}
}
}
dependencies {
modImplementation "maven.modrinth:shield-api:${project.shield_api_version}"
}
gradle.properties
# replace with latest version
shield_api_version=1.0.0
A simple example can be found on GitHub.
Note that the elements, groups and textures of the example shields are defined in a separate file called "