Skip to content
Jakub Dóka edited this page Jul 5, 2020 · 1 revision

Pets

Pets are cosmetic that is used show of layers activity or donation. To customize overwrite the pets.json, you can find in mindustry-server\config\mods\The_Worst\config. Plugin should have already generated something like this:

{
    "pets":[
        {
            "acceleration":0.3,
            "maxSpeed":7.0,
            "attraction":1.0,
            "trailName":"fire",
            "name":"fire-pet",
            "weapon":"copperGun"
        }
    ]
}

First we go over less important ones "acceleration", "maxSpeed" and attraction.

"acceleration":0.3,
"maxSpeed":7.0,
"attraction":1.0,

I cannot tell more about these the just play with them. They do affect movement of pet. Next is "trailName".

"trailName":"fire",

this property modifies the look of pet, if trail is invalid ugly error will show up, read just a beginning of a stacktrace witch will tell witch pet has invalid trail. The list of trails can be found here.Realy important property is "name".

"name":"fire-pet",

You obviously want to use pet in game and name makes is easy. Pets are bounded to special ranks via "pets" property in rank config, more about special ranks here, so if you want to bound this pet to the donor rank you declare property in it like this:

"pets":["fire-pet","fire-pet"]

This even ads 2 pets of this kind to the rank so 2 pets will spawn when player joins. Last and optional is "weapon".

"weapon":"copperGun"

Pet will be able to shoot with a weapon you specify. More about how to create weapon here.

Clone this wiki locally