Configure to replace certain creatures with others.
config path: config/entityreplacer/xxx.json
example:
[
{
"replaceds": [
"minecraft:villager" //mobs that need to be replaced, array string
],
"replacers": [//New mobs for replacement, array obj
{
"mobId": "minecraft:pillager",
"weight": 10
},
{
"mobId": "guardvillagers:guard",
"weight": 10
},
],
"chance": 0.8, //probability of substitution
"rolls": 3, //Replace one mob with rolls
"additionMode": false //Whether to remove the original mob
},
{
"replaceds": [
"minecraft:creeper"
],
"replacers": [
{
"mobId": "mozombies_wave:zombie_creeper",
"weight": 10
},
{
"mobId": "specialmobs:skeletoncreeper",
"weight": 10
}
],
"chance": 1.0,
"rolls": 1,
"additionMode": false
}
]
reload command:
/entityreplacer reload