Skip to content

Compatibility

Preston edited this page Sep 6, 2025 · 3 revisions

Figura Compatibility

If desired, Mermod's tail can be hidden by a Figura avatar script with the following code:

if mermod_tail then
    mermod_tail:setVisible(false)
end

Avatar scripts can also access information about the player's current tail. For example, the following code spawns dust particles above the player's head which are the same color as the player's tail:

function events.tick()
    if mermod_tail then
        local tailStyle = mermod_tail:getTailStyle()
        if tailStyle then
            local particleID = string.format("dust %.2f %.2f %.2f 1", tailStyle.tailColorR, tailStyle.tailColorG, tailStyle.tailColorB)
            local pos = player:getPos():add(0, 2, 0)
            particles:newParticle(particleID, pos)
        end
    end
end

Tail Style Table Values

Key Value Description
texture mermod:textures/tail/tail.png The namespace and path of the current tail texture
model 0 - 2 0 for default or Ursula's Shell, 1 for Moon Rock, 2 for Deep Sea Crystal
tailColorR 0.0 - 1.0
tailColorG 0.0 - 1.0
tailColorB 0.0 - 1.0
hasBra true or false Whether or not the tail has the Mermaid Bra modifier applied
braColorR 0.0 - 1.0
braColorG 0.0 - 1.0
braColorB 0.0 - 1.0
hasGradient true or false Whether or not the tail has the Tail Gradient modifier applied
gradientColorR 0.0 - 1.0
gradientColorG 0.0 - 1.0
gradientColorB 0.0 - 1.0
hasGlint true or false Whether or not the tail has the Glowing Pearl modifier applied
permanent true or false Whether or not the tail has the Tail Moisturizer modifier applied

Clone this wiki locally