Supported MC Versions1.16, 1.15, 1.14, 1.13, 1.12, 1.11, 1.10, 1.9, 1.8, 1.7
DependenciesTokenEnchant

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.

Supported Creatures:
To find the mob names used in the config, please refer to https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html

  • Blaze,
  • CaveSpider,
  • Creeper,
  • Enderman,
  • Endermite,
  • Giant,
  • Guardian,
  • IronGolem,
  • PigZombie,
  • Silverfish,
  • Skeleton,
  • Snowman,
  • Spider,
  • Witch,
  • Wither,
  • Wolf,
  • Zombie
  • and any other new hostile mobs..

No so useful Guardians but supported...

  • Chicken,
  • Cow,
  • Horse,
  • MushroomCow,
  • Ocelot,
  • Pig,
  • Rabbit,
  • Sheep,
  • Villager,

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"