NOTE: This a custom enchant module requires [url=TokenEnchant]TokenEnchant[/url] plugin
This plugin contains a custom enchantment effect to spawn your bodyguard mob when someone attacks you! Your bodyguard will start attacking your attacker. When you disarm with this enchant or if you are far away from your bodyguard mob, it will despawn.
This enchant is compatible with MergedMob, your Guardian will not be merged with other non-guardian mobs.
Installation: Just install TE-GuardianEnchant.jar in TokenEnchant/enchants folder. Then you can either "restart the server" or "reload the plugin (not /te reload)". GuardianEnchantment will automatically be loaded into TokenEnchant framework.
Configuration: You need to add a new entry for "Guardian" under "Potions:" section in your config.yml.
Guardian: price: 10 max: 2 name_format: "&e%player%&'s Guardian" nearby_radius: 10 PvE: false combat_expire: 20. #in seconds. guards: 1: type: PIG_ZOMBIE 2: type: IRON_GOLEM # if you set occurrence: random, the chance of # your guardian being spawn will be calculated form the level occurrence: always event_map: EntityDamageByEntityEvent: "HIGHEST" EntityDeathEvent: "LOWEST" EntityTargetEvent: "LOWEST"