Skip to content

Render Layers

Render layers draw extra models or effects on top of an entity. These are the render layers Argon adds.

3 listed · Argon 1.1.0

Anchored Lightning Sparks

IDargon:anchored_lightning_sparks
Like Palladium's Lightning Sparks, but the sparks can be tied to named body part bones using the same "anchors" as the Thrusters layer.

KeyTypeDescriptionRequiredFallback
frequencyFloatThe frequency of the sparks.✗0.5
amountIntegerHow many sparks spawn each time, per anchor (or for the whole entity if "anchors" is empty).✗5
render_settingsLaser Renderer SettingsThe render settings for the sparks.✓/
anchorsstring[]Bones to spawn sparks at, e.g. "head" or "right_arm". Each gets its own spark cycle. Empty spawns them anywhere on the entity, like palladium:lightning_sparks.✗[]
anchor_sizeFloatOnly relevant when "anchors" isn't empty: how far, in blocks, sparks jitter from the anchor point.✗0.3
offsetVector 3D[x, y, z] offset from the anchor (or the entity if "anchors" is empty), so sparks can sit off the bone's pivot.✗[ 0, 0, 0 ]
transformationIdentifier,
Identifier[]
Transformation ID(s). The layer only shows while one of these transformations is shown, on the transformed model. Without this field the layer is hidden while a transformation model is shown. Layers inside a compound layer without their own value use the one of the compound.✗/
shrink_player_partscape
jacket
left_sleeve
right_sleeve
left_pants_leg
right_pants_leg
hat
Skin overlay part(s) that are scaled down slightly while this layer is visible, so they don't stick out of the layer's model. "cape" has no effect.✗/

{
  "type": "argon:anchored_lightning_sparks",
  "frequency": 0.2,
  "amount": 10,
  "render_settings": {
    "glow": "#0000ff",
    "bloom": 2,
    "size": 2
  },
  "anchors": [
    "head",
    "right_arm"
  ],
  "anchor_size": 0.25,
  "offset": [
    0,
    0.1,
    0
  ]
}

Cloth Render Layer

IDargon:cloth
Renders a simulated cloth grid (a cape by default) that flows, bends and trails behind the wearer instead of turning as one flat plane.

KeyTypeDescriptionRequiredFallback
attachmentback
left_arm
right_arm
waist
Which part of the cloth grid is pinned to the wearer: "back" (cape), "left_arm" or "right_arm" (draped along an arm), or "waist" (skirt or kilt, a box-shaped loop around the hips).✗back
materialIdentifier,
Inline Material Object
A registered material id (e.g. "argon:heavy") or an inline object overriding individual physics properties.✗argon:standard
sizeVector 2D[length, width] of the cloth at rest, in blocks. For a "waist" attachment, "width" is the half-width of the left and right sides of the box. "depth" sets the front and back.✗[ 1.8, 1 ]
segmentsVector 2D[segments_x, segments_y]: simulation columns/rows. More = smoother bending at a performance cost.✗[ 4, 8 ]
wrapFloat"back" attachment only. Curves the pinned edge forward so it hugs the wearer's sides, turning a flat cape into a wrap-around cloak. 0 is flat.✗0.0
depthFloat"waist" attachment only. Half-depth of the front and back sides, in blocks. Usually smaller than "width", since players are thinner front to back. Defaults to "width".✗/
pitch_influenceFloat"waist" attachment only. While crouching, the garment follows the body's pitch as one piece. This scales how much, 0 ignores it and 1 follows fully.✗0.6
hem_pitch_fractionFloatCurrently unused. Kept so existing configs that set it still load.✗0.25
attachVector 3D[x, y, z] offset of the attach point from the neck, in wearer space. Y=0 is neck height and higher Y goes down. A cape needs a positive Z to sit behind. For "waist" use X=0, Z=0 and Y about 0.75-0.9.✗[ 0, 0.1, 0.4 ]
taperFloat"back" attachment only. Width at the shoulders as a fraction of the width at the hem, 0.05 to 1. Below 1 the cloth is a trapezoid that flares out to "width" at the hem. 1 is a plain rectangle.✗1.0
aerodynamicsCloth AerodynamicsHow the cloth reacts to the wearer's real speed, not the selected flight level. Each part is documented in the tables below.✗{}
textureTexture Reference,
Dynamic Texture
The texture for the cloth. UVs stay stable across the grid however the cloth deforms.✓/
render_typeminecraft:entity_translucent
minecraft:entity_cutout
minecraft:entity_cutout_cull
palladium:entity_translucent_cull
palladium:glow
palladium:glow_cull
argon:glow
argon:additive
argon:glow_no_depth_write
argon:glow_emission
argon:additive_emission
The render type to draw the cloth with.✗minecraft:entity_translucent
transformationIdentifier,
Identifier[]
Transformation ID(s). The layer only shows while one of these transformations is shown, on the transformed model. Without this field the layer is hidden while a transformation model is shown. Layers inside a compound layer without their own value use the one of the compound.✗/
shrink_player_partscape
jacket
left_sleeve
right_sleeve
left_pants_leg
right_pants_leg
hat
Skin overlay part(s) that are scaled down slightly while this layer is visible, so they don't stick out of the layer's model. "cape" has no effect.✗/

aerodynamics (Cloth Aerodynamics)

KeyTypeDescriptionRequiredFallback
airflow_strengthFloat (0.0 ~ 4.0)How strongly the wearer's speed blows the cloth back.✗1.0
turn_inertiaFloat (0.0 ~ 4.0)How much the cloth lags behind when the wearer turns.✗1.0
flight_stabilizationFloat (0.0 ~ 1.0)Calms the swinging of the cloth at speed.✗0.6
flight_stiffness_multiplierFloat (1.0 ~ 3.0)Multiplies the stiffness of the cloth during flight.✗1.15
stiffness_responseFloat (0.01 ~ 1.0)How quickly the stiffness follows the speed.✗0.1
body_hugFloat (0.0 ~ 1.0)How tightly a back cape is pulled against the body near top speed.✗0.75
hug_startFloat (0.0 ~ 0.99)How far through the speed range the hugging begins.✗0.6
limb_collisionCloth Limb CollisionKeeps the cloth out of the wearer's body. Back capes only.✗/
narrowingCloth NarrowingNarrows the cloth as the wearer speeds up.✗/
flutterCloth FlutterMakes the cloth flutter at speed.✗/

aerodynamics.limb_collision (Cloth Limb Collision)

KeyTypeDescriptionRequiredFallback
enabledBooleanWhether the cloth is kept out of the body shapes. Back capes only.✗true
torsoCloth Torso ShapeThe torso shape the cloth stays out of.✗/
headCloth Head ShapeThe head shape the cloth stays out of.✗/
armsCloth Arm ShapeThe arm shape the cloth stays out of.✗/
legsCloth Leg ShapeThe leg shape the cloth stays out of.✗/

aerodynamics.limb_collision.torso (Cloth Torso Shape)

KeyTypeDescriptionRequiredFallback
widthFloat (0.1 ~ 2.0)The width of the shape in blocks.✗0.5
depthFloat (0.05 ~ 1.0)The depth of the shape in blocks.✗0.25
lengthFloat (0.1 ~ 2.0)The length of the shape in blocks.✗1.1
radiusFloat (0.0 ~ 0.6)How rounded the corners are, in blocks.✗0.1

aerodynamics.limb_collision.head (Cloth Head Shape)

KeyTypeDescriptionRequiredFallback
widthFloat (0.1 ~ 2.0)The width of the shape in blocks.✗0.5
depthFloat (0.05 ~ 1.0)The depth of the shape in blocks.✗0.5
lengthFloat (0.1 ~ 2.0)The length of the shape in blocks.✗0.5
radiusFloat (0.0 ~ 0.6)How rounded the corners are, in blocks.✗0.1

aerodynamics.limb_collision.arms (Cloth Arm Shape)

KeyTypeDescriptionRequiredFallback
radiusFloat (0.05 ~ 1.0)The radius of the limb in blocks.✗0.3
lengthFloat (0.1 ~ 1.5)The length of the limb in blocks.✗0.8

aerodynamics.limb_collision.legs (Cloth Leg Shape)

KeyTypeDescriptionRequiredFallback
radiusFloat (0.05 ~ 1.0)The radius of the limb in blocks.✗0.25
lengthFloat (0.1 ~ 1.5)The length of the limb in blocks.✗0.8

aerodynamics.narrowing (Cloth Narrowing)

KeyTypeDescriptionRequiredFallback
enabledBooleanWhether the cloth narrows at speed. Not used by waist cloth.✗true
start_speedFloat (0.0 ~ 1000.0)The speed in blocks per second where narrowing starts when there is no flight.✗10.0
full_speedFloat (0.0 ~ 1000.0)The speed in blocks per second where narrowing is full when there is no flight.✗40.0
start_fractionFloat (0.0 ~ 2.0)The fraction of the wearer's top flight speed where narrowing starts.✗0.25
full_fractionFloat (0.0 ~ 2.0)The fraction of the wearer's top flight speed where narrowing is full.✗0.85
maximumFloat (0.0 ~ 0.9)The most the cloth narrows. The default is 0.35 when wrap is above 0 or for arms.✗0.6
responseFloat (0.001 ~ 1.0)How quickly the cloth narrows.✗0.06
recoveryFloat (0.001 ~ 1.0)How quickly the cloth widens again.✗0.04
distributionFloat (0.1 ~ 6.0)Higher values keep the top of the cloth wider.✗1.5
foldFloat (0.0 ~ 1.5)How much the cloth folds into pleats. 0 turns the pleats off.✗1.0
compressionFloat (0.0 ~ 0.9)How much of the narrowing squeezes the cloth itself instead of folding it.✗0.5

aerodynamics.flutter (Cloth Flutter)

KeyTypeDescriptionRequiredFallback
intensityFloat (0.0 ~ 5.0)How strong the fluttering is.✗1.0
frequencyFloat (0.1 ~ 5.0)How fast the cloth flutters.✗1.0
speed_influenceFloat (0.0 ~ 4.0)How much the wearer's speed adds to the fluttering.✗1.0
dampingFloat (0.0 ~ 1.0)How quickly the fluttering dies down.✗0.6
edge_multiplierFloat (1.0 ~ 5.0)How much stronger the fluttering is at the free edge.✗1.5

{
  "type": "argon:cloth",
  "texture": "example:textures/models/capes/red_cape.png"
}
{
  "type": "argon:cloth",
  "material": "argon:heavy",
  "size": [
    2.4,
    1.6
  ],
  "segments": [
    5,
    10
  ],
  "wrap": 0.6,
  "texture": "example:textures/models/cloaks/heavy_cloak.png"
}
{
  "type": "argon:cloth",
  "size": [
    2.5,
    1.4
  ],
  "segments": [
    6,
    10
  ],
  "taper": 0.4,
  "aerodynamics": {
    "airflow_strength": 1.2,
    "narrowing": {
      "maximum": 0.6
    }
  },
  "texture": "example:textures/models/capes/streamlined_cape.png"
}
{
  "type": "argon:cloth",
  "attachment": "left_arm",
  "material": "argon:lightweight",
  "size": [
    1.2,
    0.5
  ],
  "segments": [
    3,
    6
  ],
  "attach": [
    -0.3,
    0.2,
    0
  ],
  "texture": "example:textures/models/arm_cloth.png"
}
{
  "type": "argon:cloth",
  "attachment": "waist",
  "material": "argon:leather",
  "size": [
    0.32,
    0.28
  ],
  "segments": [
    16,
    6
  ],
  "depth": 0.15999999642372131,
  "pitch_influence": 0.5,
  "attach": [
    0,
    0.64,
    0
  ],
  "texture": "example:textures/models/skirts/skirt.png"
}

Fade Render Layer

IDargon:fade
Wraps another render layer and draws it at a changing opacity so it can fade in and out. Put the wrapped layer's conditions inside "layer". Nothing is drawn at opacity 0.

KeyTypeDescriptionRequiredFallback
opacityFloat / Value(Dynamic) 0 to 1, how opaque the wrapped layer is. Usually an ability's eased animation timer, e.g. palladium.get_animation_timer_eased('namespace:power#ability'), which already runs 0 to 1.✗1.0
layerRender LayersThe render layer to draw, written exactly as it would be on its own, including its "conditions".✓/

{
  "type": "argon:fade",
  "opacity": {
    "type": "palladium:molang_float",
    "molang": "palladium.get_animation_timer_eased('example:power#some_ability')"
  },
  "layer": {
    "texture": {
      "type": "palladium:eye_selection",
      "color": "#6b6b6b"
    }
  }
}