Templates

September 29, 2025 ยท View on GitHub

You can override the plugins template or filenames creation. This is accomplished through the .mcattributes

Each template has a filename and a file section:

.filename works as a template string itself and is used to specify the folder and filename of the file., example : entities/${{id.safe}}.entity.json
.file is the content of the file. and the content is treated as a template

Replaceable variables

In template variables you can find all the available variables. You can use ${{}} to specify a place where the plugin needs to replace a variable.

Example

template.behavior.entity.filename=entities/${{id}}.bp.entity.json
template.behavior.entity.file=./.minecraft/templates/entity.bp.json
{
  "format_version": "1.20.41",
  "minecraft:block": {
    "description": {
      "identifier": "${{id}}",
      "register_to_creative_menu": true
    },
    "components": {}
  }
}

List of attribute

In the attribute file you can specify the following attributes:

AttributeDescription
template.behavior.animation_controller.filenameThe template string of the file
template.behavior.animation_controller.fileThe filepath to the template file for the content of the template
template.behavior.animation.filenameThe template string of the file
template.behavior.animation.fileThe filepath to the template file for the content of the template
template.behavior.block.filenameThe template string of the file
template.behavior.block.fileThe filepath to the template file for the content of the template
template.behavior.entity.filenameThe template string of the file
template.behavior.entity.fileThe filepath to the template file for the content of the template
template.behavior.dialogue.filenameThe template string of the file
template.behavior.dialogue.fileThe filepath to the template file for the content of the template
template.behavior.item.filenameThe template string of the file
template.behavior.item.fileThe filepath to the template file for the content of the template
template.behavior.loot_table.filenameThe template string of the file
template.behavior.loot_table.fileThe filepath to the template file for the content of the template
template.behavior.manifest.filenameThe template string of the file
template.behavior.manifest.fileThe filepath to the template file for the content of the template
template.behavior.recipe.filenameThe template string of the file
template.behavior.recipe.fileThe filepath to the template file for the content of the template
template.behavior.spawn_rule.filenameThe template string of the file
template.behavior.spawn_rule.fileThe filepath to the template file for the content of the template
template.behavior.trading.filenameThe template string of the file
template.behavior.trading.fileThe filepath to the template file for the content of the template
template.behavior.volume.filenameThe template string of the file
template.behavior.volume.fileThe filepath to the template file for the content of the template
template.resource.animation_controller.filenameThe template string of the file
template.resource.animation_controller.fileThe filepath to the template file for the content of the template
template.resource.animation.filenameThe template string of the file
template.resource.animation.fileThe filepath to the template file for the content of the template
template.resource.attachable.filenameThe template string of the file
template.resource.attachable.fileThe filepath to the template file for the content of the template
template.resource.biomes_client.filenameThe template string of the file
template.resource.biomes_client.fileThe filepath to the template file for the content of the template
template.resource.blocks.filenameThe template string of the file
template.resource.blocks.fileThe filepath to the template file for the content of the template
template.resource.entity.filenameThe template string of the file
template.resource.entity.fileThe filepath to the template file for the content of the template
template.resource.fog.filenameThe template string of the file
template.resource.fog.fileThe filepath to the template file for the content of the template
template.resource.flipbook_textures.filenameThe template string of the file
template.resource.flipbook_textures.fileThe filepath to the template file for the content of the template
template.resource.item_texture.filenameThe template string of the file
template.resource.item_texture.fileThe filepath to the template file for the content of the template
template.resource.manifest.filenameThe template string of the file
template.resource.manifest.fileThe filepath to the template file for the content of the template
template.resource.model.filenameThe template string of the file
template.resource.model.fileThe filepath to the template file for the content of the template
template.resource.music_definitions.filenameThe template string of the file
template.resource.music_definitions.fileThe filepath to the template file for the content of the template
template.resource.particle.filenameThe template string of the file
template.resource.particle.fileThe filepath to the template file for the content of the template
template.resource.render_controller.filenameThe template string of the file
template.resource.render_controller.fileThe filepath to the template file for the content of the template
template.resource.sounds.filenameThe template string of the file
template.resource.sounds.fileThe filepath to the template file for the content of the template
template.resource.sound_definitions.filenameThe template string of the file
template.resource.sound_definitions.fileThe filepath to the template file for the content of the template
template.resource.terrain_texture.filenameThe template string of the file
template.resource.terrain_texture.fileThe filepath to the template file for the content of the template
template.world.manifest.filenameThe template string of the file
template.world.manifest.fileThe filepath to the template file for the content of the template