Mob Configuration
The Mob configuration is responsible for defining groups of creatures that are placed with encounters. The creatures may have treasure, which will be dropped based on the defined probability, and may even spawn another mob upon death. These configuration are stored in the file defined by mobConfig in the plugin's main configuration file. The information is stored in JSON format as follows:
{
"mobs": [
{
"name": "(String) Unique mob name",
"tagName": "(String) Name to give creatures",
"type": "(String) EntityTypeName",
"min": "(Integer) Minimum",
"max": "(Integer) Maximum",
"probability": "(Double) probability",
"deathSpawn": "(String) Mob name to spawn on death",
"mobGroups": [
{
"name": "(String) Mob configuration name",
"min": "(Integer) Minimum groups to spawn",
"max": "(Integer) Maximum groups to spawn",
"probability": "(Double) Probability of additional groups"
},
]
"treasures": [
"(String) Treasure name",
],
"potionEffects": [
{
"type": "(String) PotionEffectType name",
"amplifier": "(Integer) The amplification of effect",
"duration": "(Integer) number of seconds to apply the effect",
"probability": "(Double) the probability of effect"
}
],
"equipment": {
"hand": {
"dropProbability": "(Double) Probability of drop",
"treasure": "(String) Treasure name"
},
"helmet": {
"dropProbability": "(Double) Probability of drop",
"treasure": "(String) Treasure name"
},
"chestplate": {
"dropProbability": "(Double) Probability of drop",
"treasure": "(String) Treasure name"
},
"leggings":{
"dropProbability": "(Double) Probability of drop",
"treasure": "(String) Treasure name"
},
"boots": {
"dropProbability": "(Double) Probability of drop",
"treasure": "(String) Treasure name"
},
}
},
]
}
Example:
{
"mobs": [
{
"name": "GeordianPigs",
"tagName": "Geordian Pig",
"enabled": true,
"type": "PIG",
"min": 4,
"max": 8,
"probability": 0.50,
"deathSpawn": "GeordianWarrior",
"treasures": null
},
{
"name": "GeordianWarrior",
"tagName": "Geordian Warrior",
"enabled": true,
"type": "PigZombie",
"min": 1,
"max": 1,
"probability": 0.50,
"deathSpawn": null,
"treasures": [
"GeordianCoins"
],
"potionEffects": [
{
"type": "SPEED",
"amplifier": 10,
"duration": 1576800000,
"probability": 1.00
},
{
"type": "REGENERATION",
"amplifier": 10,
"duration": 1576800000,
"probability": 0.50
},
{
"type": "INVISIBILITY",
"amplifier": 10,
"duration": 1576800000,
"probability": 0.12
}
],
"equipment": {
"hand": {
"treasure": "GeordianSwordStandard",
"dropProbability": 1
},
"helmet": {
"treasure": "GeordianHelmetStandard",
"dropProbability": 1.00
},
"chestplate": {
"treasure": "GeordianChestplateStandard",
"dropProbability": 1.00
},
"boots": {
"treasure": "GeordianBootsStandard",
"dropProbability": 1.00
}
}
},
{
"name": "GeordianCommander",
"tagName": "Geordian Commander",
"enabled": true,
"type": "WitherSkeleton",
"min": 1,
"max": 1,
"probability": 1,
"deathSpawn": "GeordianPigs",
"treasures": [
"GeordianCoins"
],
"potionEffects": [
{
"type": "SPEED",
"amplifier": 10,
"duration": 1576800000,
"probability": 1.00
},
{
"type": "REGENERATION",
"amplifier": 10,
"duration": 1576800000,
"probability": 0.50
},
{
"type": "INVISIBILITY",
"amplifier": 10,
"duration": 1576800000,
"probability": 0.12
}
],
"equipment": {
"hand": {
"treasure": "GeordianSwordStandard",
"dropProbability": 1
},
"helmet": {
"treasure": "GeordianHelmetStandard",
"dropProbability": 1.00
},
"chestplate": {
"treasure": "GeordianChestplateStandard",
"dropProbability": 1.00
},
"boots": {
"treasure": "GeordianBootsStandard",
"dropProbability": 1.00
}
}
},
{
"name": "GeordianBattalion",
"mobGroups": [
{
"name": "GeordianWarrior",
"min": 4,
"max": 8,
"probability": 0.50
},
{
"name": "GeordianPigs",
"min": 1,
"max": 1,
"probability": 1
},
{
"name": "GeordianCommander",
"min": 0,
"max": 1,
"probability": 0.75
}
]
}
]
}
Comments