Git Product home page Git Product logo

moblimiter's Introduction

MobLimiter 2

Download

Compile (a Maven project) or download from our build service.

Configuration

Animals:
  GlobalChunkLimit: 30
  GlobalViewDistanceLimit: 150
  GroupPlural: Animals
  HORSE:
    NameSingular: Horse
    NamePlural: Horses
    ChunkLimit: 8
    ViewDistanceLimit: 150
  COW:
    NameSingular: Cow
    NamePlural: Cows
    ChunkLimit: 30
    ViewDistanceLimit: 150
  SHEEP:
    NameSingular: Sheep
    NamePlural: Sheep
    ChunkLimit: 30
    ViewDistanceLimit: 150
  CHICKEN:
    NameSingular: Chicken
    NamePlural: Chickens
    ChunkLimit: 30
    ViewDistanceLimit: 150
  PIG:
    NameSingular: Pig
    NamePlural: Pigs
    ChunkLimit: 30
    ViewDistanceLimit: 150
Villages:
  GroupPlural: Villagers and Golems
  GlobalChunkLimit: 20
  GlobalViewDistanceLimit: 150
  IRON_GOLEM:
    NameSingular: Iron Golem
    NamePlural: Iron Golems
    ChunkLimit: 4
    ViewDistanceLimit: 150
  VILLAGER:
    NameSingular: Villager
    NamePlural: Villagers
    ChunkLimit: 20
    ViewDistanceLimit: 150
ViewDistanceChunks: 6
Messages:
  NoPermission: '&cNo permission!'
  MobCountLine: '&6<MobName>: <ChunkCount>&7/<ChunkLimit> in chunk, &6<ViewDistanceCount>&7/<ViewDistanceLimit>
    in view distance.'
  TooManyMobs: '&cYou have too many mobs for the server to handle. Please, if you
    can, consider killing some or moving them further to keep the server healthy.
    Many thanks, we appreciate it.'
  BreedLimitOneMob: '&cYou cannot breed more than <MobTypeLimit> <MobNamePlural> in
    view distance.'
  BreedLimitAllMobs: '&cYou cannot breed more than <MobGroupLimit> <MobGroupNamePlural>
    in view distance.'
  NoHorseBreeding: '&cSorry, you are not allowed to breed horses. Find another one
    in the wild.'
NoHorseBreed: true
BreedingSpamDelaySeconds: 5
Grid: # contains settings for the grid
  None: # block id/data for 0% of limit
    Id: 20
    Data: 0
  Low: # block id/data for < 80% of limit
    Id: 35
    Data: 5
  Medium: # block id/data for > 80% of limit
    Id: 35
    Data: 4
  High: # block id/data for > 90% of limit
    Id: 35
    Data: 1
  Exceed: # block id/data for when the limit is exceeded
    Id: 35
    Data: 14
  Duration: 600 # the duration after which the grid will disappear automatically, in server ticks.

Commands

There are 2 commands, which do the same thing but for different creature groups:

/animals
/villagers

The /animals command will count the animals group, that is cows, pigs, chicken, sheep and horses.

The /villagers command will count villagers and iron golems.

Both commands have the same arguments, the /animals command will be used as an example here, but every argument will work the same way for the villagers command as well.

/animals show

Will display a grid 10 blocks above the player, like depict in this image:

Grid visualization of a count command

The grid is aligned by chunk and there are 5 different layouts/colors that are drawn per chunk:

  • Edges / transparent: No creatures apply to counted group
  • One bar in the middle / lime green: Max creature count is below 80% of limit
  • Two bars in the middle / yellow: Max creature count is above 80% of limit
  • Dotted border / orange: Max creature count is above 90% of limit
  • Solid border / red: Max creature count exceeds limit

With default arguments, the grid will disappear after 30 seconds (this can be configured with the field Grid.Duration).

To make the grid stay, add the keep argument to the command, like so:

/animals show keep

This will make the grid stay until you reload the chunks or type in this command:

/animals hide

moblimiter's People

Contributors

matejdro avatar narrowtux avatar stevommmm avatar ladycailin avatar amaranth avatar bencvt avatar deaygo avatar johnoliverdriscoll avatar riddle avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.