Sudden Death - Wiki

Jul 31, 2018
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 another plugin that features a movement speed system (Werewolves, /speed from Essentials...). If you're encountering movement speed issues, use /sds resetms.

    Custom Mobs - Spawn Coefficient
    The spawn coefficient of a custom mob determins the frequency at which this mob will spawn. To explain the spawning mechanism, let's assume 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 look 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 // <--------------- there
      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 // <--------------- there
      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 // <-------------- and there
      hp: 20
      atk: 4
      ms: 0.02
     

    1. First, we'll calculate the "total spawn coefficient", which is the sum of all mob spawn coefficients, plus the default spawn coefficient. It equals to <default-spawn-coef> + <spawn-coef-of-Z_ONE> + <coef-of-Z_TWO> + <coef-of-Z_THREE>, so 20 + 3 + 5 + 10 = 38.
    2. To know the frequency at which a mob custom spawns, just divide the mob's spawn coefficient by the total spawn coefficient you just calculated.
      The spawn coefficient of Z_THREE is 10 ; 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 naturally 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-coefficient> / <total-spawn-coefficient>.
  • Loading...
  • Loading...