WillPall / MobRepellent

A plugin for the Minecraft Bukkit server. Stops mobs from spawning in a given area, denoted by a "repeller".
MIT License
5 stars 5 forks source link

MobRepellent - a Minecraft Server Plugin

What is MobRepellent?

MobRepellent is a plugin for third-party Minecraft server project PaperMC (other server support to come). MobRepellent allows players to construct "repellers" that will prevent hostile mobs from spawning within a certain distance.

How do I use MobRepellent?

Simply add the MobRepellent jar file to your /plugins directory. MobRepellent will automatically create all the necessary files.

Once the plugin is loaded, to create a repeller you'll need 7 iron, gold, or diamond blocks. First, using five blocks, construct a shape that looks like a plus sign (+) parallel with the ground. Next, place the remaining two blocks directly above the block in the center of the plus sign.

After the repeller is constructed, no hostile mobs will spawn within a cuboid radius of the base of the repeller. For instance, if the radius is 50 blocks, it will repel in a 100x100x100 cube centered at the base of the repeller. Neutral mobs are not blocked by default, but this can be configured in the config.yml. MobRepellent does not affect mob spawners, hostile nor passive. To remove the repeller, simply remove one of the blocks that is part of the repeller.

Default repeller types and radii:

Console/Admin Commands

All console commands default to OP-only.

/mrlist - Lists all currently loaded repellers
/mrreload - Reloads the configuration file
/mrremove [repellerNumber] - Removes the selected number as found in the
                             list given by /mrlist. Does not remove
                             repeller structure.
/mrremoveall - Removes all currently loaded repellers. Does not remove the
               repeller structure.

Permissions

mobrepellent.* - Access to all permissions

mobrepellent.list
  Default: OP-only
  Allows use of /mrlist command
mobrepellent.reload
  Default: OP-only
  Allows use of /mrreload command
mobrepellent.remove
  Default: OP-only
  Allows use of /mrremove command
mobrepellent.removeall
  Default: OP-only
  Allows use of /mrremoveall command
mobrepellent.create
  Default: all players
  Allows player to create a repeller
mobrepellent.destroy
  Default: all players
  Allows player to destroy a repeller

Configuring MobRepellent

You can configure MobRepellent to use almost any block type instead of the default blocks. You can also configure MobRepellent to use any radius to repel mobs, and select which mobs to repel and which to ignore. On the first run of the plugin, MobRepellent will automatically create a config.yml file with the default values. See the sample config.yml file for more information:

https://github.com/WillPall/MobRepellent/raw/master/docs/config.yml

Todo list

Known Issues

Changelog

Version 3.0.0

Version 0.8.1

Version 0.8.0

Version 0.7.2a (Gauthic)

Version 0.7.2

Version 0.7.1

Version 0.7.0 (DEVELOPMENT - Use at your own risk)

Version 0.6

Version 0.5.2

Version 0.5.1

Version 0.5

Version 0.4.4

Version 0.4.3

Version 0.4.2

Version 0.4.1

Version 0.4

Version 0.3

Version 0.2

Version 0.1

License and Reuse

Licensed under the MIT License. See LICENSE file for more information.