Custom Mob Drop Risk Gauge

Feb 1, 2017
Custom Mob Drop Risk Gauge

  • What is the Risk Gauge?(top)


    The Risk Gauge is the server's automatic system which determines if a monster being attacked by a player has a reasonable chance to fight back against the player.

    This system is based on the concept "with risk comes reward." Empire Minecraft's special drops and features are intended to be earned in fair combat with monsters.

    While you are allowed to get creative and kill monsters with little to no risk, doing so will reduce your chance of receiving the custom loot that EMC has to offer since you didn't face much risk of dying.

    Determining risk(top)


    For sword/fist-based attacks (i.e: non-skeleton attacks), the risk is determined by whether or not the monster can find a path to be within melee-distance of the attacker. This means that standing on a two-block tall pillar, preventing the monster from attacking you, and attacking the monster back will qualify as "no risk," and trigger the risk gauge system.

    Likewise, trapping a monster in a kill chamber where it cannot get out, as typically done in mob farms, will trigger this system.

    For ranged attackers, such as skeletons, ghasts, and withers, the determined risk is based on whether or not the monster has a clear line of sight toward the player.

    Penalty for no risk(top)


    For Melee attackers:
    • Mini-bosses OR player difficulty greater than 6: The monster will teleport to the player, escaping the barriers that were preventing it from reaching the player on lower difficulties.
    • Normal Monsters on difficulty 6 or below: The entity's effective difficulty will be reduced each hit, acting as if the player is on a lower difficulty. This can nerf it to zero, resulting in absolutely no special loot.
    For ranged attackers, the attack damage will be resisted because this can potentially trigger in normal combat. Therefore, players face less of a risk of missing out on loot while engaged in combat with these types of mobs.

    Effects on vanilla loot(top)


    This system does not affect vanilla loot items in any way. This system only applies to special rewards added by Empire Minecraft, such as Custom Items and Tokens.

    Source Code(top)


    For those that can read code, we have posted the source code for this system to be reviewed here:
    https://gist.github.com/aikar/34ad5e79756a686ca8a8

    EMC has many features to take advantage of that revolve around certain aspects of multiplayer Minecraft.

Looking for a more general Minecraft guide? Visit Minecraftopia!