Coder Social home page Coder Social logo

nogrind's People

Contributors

terxiii avatar toxuin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

clucky

nogrind's Issues

[Suggestion] Added Configuration Objects and Better Prevention of Mob Farms

I have three different ideas to both add to the configuration and to help prevent mob farms on a wider variety of servers:

First Idea
Add a configurable option for the amount of hearts of damage required from a player (configuration option variables: DamageFromPlayer) in order for the mob to be considered to have been killed by a player.

For example: DamageFromPlayer equals 6 in the configuration.
-Player does 5 hearts of damage on creeper, the rest of the damage is done by another creeper. The end result will be that the player DOES NOT get a drop or xp.
-Player does 6 hearts of damage on a creeper,t he rest of the daamge is done by another creeper. The end result will be taht the player DOES get a drop and xp.

Second Idea
Add a configurable option to detect nearby mob spawners (Configuration option variables: DetectSpawner,SpawnerRadius) and require the player do 2x the amount of damage specified by "DamageFromPlayer" in order to receive the drop and xp.

For example: DamageFromPlayer equals 5, DetectSpawer is true, and SpawnerRadius equals 10.
-Player does 9 hearts of damage on a skeleton that is 8 blocks away from the spawner and fire deals the remaining damage. The end result will be that the player DOES NOT get a drop or xp.
-Player does 5 hearts of damage on a skeleton that is 11 blocks away from the spawner and fire deals the remaining damage. The end result will be that the player DOES get a drop or xp.
-Player does 10 hearts of damage on a skeleton that is 10 blocks away from the spawner and fire deals the remaining damage. The end result will be that the player DOES get a drop and xp.
-Player does 10 hearts of damage on a skeleton that is 7 blocks away from the spawner and fire deals the remaining damage. The end result will be that the player DOES get a drop and xp.

Third Idea
Make a configuration option for skeletons killing creepers and dropping items and possibly xp. (configuration option variable:CreeperDeathBySkeleton).

For example: DamageFromPlayer equals 5 and CreeperDeathBySkeleton is true.
-Player deals 5 hearts of damage on a creeper and a skeleton finishes it off. The end result will be that the player DOES get a drop and xp.
-Player deals 4 hearts of damage on a creeper and a skeleton kills it completely. The end result will be that the player DOES get a drop, however no xp.

_Fourth Idea
Make a configuration option to detect a set variable (Configuration option variable: DetectNearbyMobs,SurroundingMobs) of nearby monsters of that same type within a 3 block radius, and disable drops and xp if this yields true.

For example: DetectNearbyMobs is true and SurroundingMobs is equal to 8.
-Player deals DamageFromPlayer hearts on a skeleton and the rest is dealt by fire, and no other skeletons are nearby. The end result will be that the player DOES get a drop and xp.
-Player deals DamageFromPlayer hearts on a skeleton and the rest is dealt by fire, and 7 other skeletons are nearby. The end result will be that the player DOES get a drop and xp.
-Player deals DamageFromPlayer hearts on a skeleton and the rest is dealt by fire, and 9 other skeletons are nearby. The end result will be that the player DOES NOT get a drop or xp.
-Player deals DamageFromPlayer hearts on a skeleton and the rest is dealt by fire, and 7 other skeletons and 2 zombies are nearby. The end result will be that the player DOES get a drop and xp.

Configuration
combatTagSeconds=5 #The time span to keep the entity id stored in the database (refreshes the time back to combatTagSeconds upon inflicting damage on the monster again)
DamageFromPlayer=6 #The amount of hearts of damage required from a player during combatTagSeconds for that mob to be considered to have been killed by a player.
DetectSpanwer=true #Turn on/off the detection of nearby spawners when calculating whether or not a player should be required to do 2x DamageFromPlayer.
SpawnerRadius=10 #The distance a mob must be from a spawner for it to have to be dealt 2x DamageFromPlayer by a player. (DetectSpawner must be true)
CreeperDeathBySkeleton=true #Should a creeper drop its normal drops (however no xp) if killed completely by a skeleton?
DetectNearbyMobs=true #Turn on/off the detection of nearby mobs of that same type within a three block radius
SurroundingMobs=8 #The amount of nearby mobs of that same type for all drops and xp to be cancelled. (DetectNearbyMobs must be true)

Feel free to use my exact words and examples in the configuration/wiki/page. Thanks for considering my ideas. The biggest one that I am concerned about is DamageFromPlayer, the second most one that is concerning mem is DetectNearbyMobs and SurroundingMobs. The CreeperDeathBySkeleton is a must if it is not already in the script.

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.