EntityGuard

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Overview

EntityGuard allows you to take control of most entities in your server. It controls and limits the entity count for XP farms, iron farms, animal farms...etc. Every entity uses a small amount of ram in your server, so limiting and controlling the entities are very important. EntityGuard can remove entities that are over the limit you set and it's done fully automatically.

Features

  • Very lightweight.
  • Reduce entities.
  • Reduce memory usage.
  • Increase server performance.
  • Trim mobs that are over the limit.
  • Prevent players from stacking mobs.
  • Check every entity's info around you.
  • Work fully automatically.
  • Everything is configurable.

How does this plugin work?

EntityGuard will automatically check the entity count for players every certain amount of time. If it finds out that the entity count is over the allowance, it will then remove/ de-spawn mobs. It can remove/ de-spawn hostile mobs, passive mobs, iron golem, tamed pets...etc.

Commands

  • /entityguard run -> Kill entities that are over the limit.
  • /entityguard check [Player] [Radius] -> Check entities around a player.
  • /entityguard reload -> Reload configuration file.
    (Note: /entityguard or /eg)

Permissions

  • entityguard.admin - Allow to use all the EntityGuard commands.
  • entityguard.bypass - EntityGuard will not check and remove entities for players with this permission.

Configuration

#Config Version. Do not change this.
version: 2

# What to do if mob count is over the limit?
#Set to: 1 = Remove the exceeding mobs and warn players; 2 = Remove the exceeding mobs and kick players.
action: 1

# Run the action every x minutes.
auto_run_delay: 10

mob_control:
  # Should EntityGuard auto-runs for you? Otherwise you can manually do "/eg run".
  auto_run: true

  # EntityGuard doesn't count and check the mobs from loaded chunks, it counts and checks them from the boundary of the player.
  # If you set the radius to 32, the boundary would be 32 blocks from each direction centered by the player but the checking height is from y = 0 to y = 255.
  check_radius: 50

  # You can only choose one method: 1: Limit_for_all_mobs, 2: Limit_individually
  limit_method: 1

  method:
    # Method 1: Limit for all mobs        (Recommended method!)
    # If you set the allowed_amount to 100, it means there will only be 100 mobs that survive within the boundary of a player after the auto-run .
    # EntityGuard will randomly de-spawn mobs that are over the limit.
    # Note that this limit is per player only.
    method_01:
      allowed_amount: 100

   # Method 2: Limit mobs individually              (This method will use a bit more cpu resources as the process is more complex)
   # Set limit per individual mob type.
   # Note that these limit is also per player only. For example: If you set pig to 20 and total online player is 10, the limit for pig will be 20*10=200 pigs.
    method_02:
      #passive_mob
      Pig: 10
      Sheep: 10
      Chicken: 10
      Mooshroom: 10
      Cow: 10
      Tamed_Wolf: 10
      Tamed_Ocelot: 10
      Wild_Ocelot: 10
      Tamed_Horse: 10
      Wild_Horse: 10
      Snow_Golem: 10
      Villager: 24
      Pet_Iron_Golem: 5
      Squid: 5
      Bat: 5
      #neutral_mob
      Cave_Spider: 50
      Enderman: 50
      Spider: 50
      Wild_Wolf: 10
      Zombie_Pigman: 50
      #hostile_mob
      Wild_Iron_Golem: 10
      Skeleton: 50
      Zombie: 50
      Blaze: 50
      Silverfish: 50
      Ghast: 10
      Slime: 50
      Magma_Cube: 10
      Creeper: 20
      Witch: 20
      Ender_Dragon: 2
      Wither: 2
      Giant: 2

# Warn Message
warn_message: 'You have stacked too many mobs that may lag the server! Please kill some of the mobs!'

# Kick Message
kick_message: 'You are kicked because you have stacked too many mobs.'

# Maximum radius allowed to check for command /eg check.
allow_check_radius: 200

# Show auto-run message in console.
console_msg: true



To-do-list

  • Control non-living entities like (Boats, arrows...etc)
  • Control massive auto-cactus farm.


McStats

This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:

  • A unique identifier
  • The server's version of Java
  • Whether the server is in offline or online mode
  • The plugin's version
  • The server's version
  • The OS version/name and architecture
  • The core count for the CPU
  • The number of players online
  • The Metrics version

Report bugs

Reporting bugs or requesting for specific features is welcome!


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    72260
  • Created
    Jan 10, 2014
  • Last Released File
    Jan 25, 2014
  • Total Downloads
    1,677
  • License

Categories

Members

Recent Files