Sudden Death - Wiki

Jun 8, 2017
Sudden Death - Wiki
  • [​IMG]
    Welcome to the Sudden Death documentation.
    Plugin incompatibilities
    Armor Weight feature currently uses the basic Minecraft movement speed attribute. It is strongly discouraged to use Armor Weight when you already have other plugins using an accurate movement speed system (Werewolves, /speed for Essentials...). If you're encountering MS issues, use /sds resetms.

    Custom Mobs - Spawn Coefficient
    Custom mobs' spawn coefficients determins the frequency at which your custom mob spawns. To illustrate the spawning system, let's say that:
    • The default spawn coefficient for the zombie is 20, as seen on this screenshot from config.yml
    [​IMG]
    • You have created three different custom zombies which IDs are Z_ONE, Z_TWO and Z_THREE, and which spawn coefficients are 3, 5 and 10. The customMobs\zombies.yml file should have something like this:
    Code (Text):
    Z_ONE:
      equipment:
        helmet: '[material=AIR:0]'
        chestplate: '[material=AIR:0]'
        leggings: '[material=AIR:0]'
        boots: '[material=AIR:0]'
        mainHand: '[material=AIR:0]'
        offHand: '[material=AIR:0]'
      name: My Custom Mob
      eff: {}
      spawn-coef: 3
      hp: 20
      atk: 4
      ms: 0.02
    Z_TWO:
      equipment:
        helmet: '[material=AIR:0]'
        chestplate: '[material=AIR:0]'
        leggings: '[material=AIR:0]'
        boots: '[material=AIR:0]'
        mainHand: '[material=AIR:0]'
        offHand: '[material=AIR:0]'
      name: My Custom Mob
      eff: {}
      spawn-coef: 5
      hp: 20
      atk: 4
      ms: 0.02
    Z_THREE:
      equipment:
        helmet: '[material=AIR:0]'
        chestplate: '[material=AIR:0]'
        leggings: '[material=AIR:0]'
        boots: '[material=AIR:0]'
        mainHand: '[material=AIR:0]'
        offHand: '[material=AIR:0]'
      name: My Custom Mob
      eff: {}
      spawn-coef: 10
      hp: 20
      atk: 4
      ms: 0.02
     

    1. First, we'll calculate the "total spawn coef size", which equals default spawn coef + coef of Z_ONE + coef of Z_TWO + coef of T_THREE, which equals 20 + 3 + 5 + 10 = 38.
    2. To then know the frequency at which a mob custom spawns, just divide the mob's spawn coefficient by the total spawn coef size you just calculated.
      10 / 38 ~= 0.26. Multiply this result by 100 to get the chance your custom mob has to spawn in percent (26% chance).
    It means Z_THREE has 10 out of 38 chances to spawn whenever a zombie naturaly spawns.
    To sum up, the default spawn coef is the chance for normal mobs to spawn. The chance for a custom mob to spawn, in percent, is equal to 100 x (mob spawn coef) / (default spawn coef + every other custom mob spawn coefs).
  • Loading...
  • Loading...