Model Parameters

Model parameters control variables for models, e.g. letting users define specific color for bed's wool color or wood frame. These are completely dynamic and can be created by anymore inside model.yml file.

Example of color parameter:

parameters:
  bedColor:
    default: "RED"
    values: "%colors%"
    description: "Color of the bed (wool)"

This would let you further into parts configuration use <bedColor> parameter, to define color for wool used with bed.

In this example, each bed_frame part would use DARK_OAK_LOG material, and bed_material parts would use any defined color of WOOL.

To define parameters with models, you use them inside /am give command, example:

/am give Steve bed 1 bedColor:orange

This command would give an orange wool textured bed.

Default Values

%colors%

All minecraft colors: white, orange, magenta, light blue, yellow, lime, pink, gray, light gray, cyan, purple, blue, brown, green, red, and black

This is useful when working with materials, such as WOOL, CARPET, CONCRETE, STAINED_GLASS, GLASS, TERRACOTTA, GLAZED_TERRACOTTA, CONCRETE_POWDER

%wood types%

All wood colors: OAK,SPRUCE,BIRCH,JUNGLE,ACACIA,DARK_OAK,WARPED,MANGROVE,CHERRY

Last updated