Giter VIP home page Giter VIP logo

levelledmobs's People

Contributors

deiphiz avatar evmodder avatar eyrian avatar eyrian2010 avatar jeffry1829 avatar konsolas avatar limzikiki avatar lokka30 avatar mrivanplays avatar stumper66 avatar theshydolphin avatar ultimaoath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

levelledmobs's Issues

Plugins such as SafariNets can be abused to get max-stat mobs.

Quote from a user:

I use SafariNets and everytime someone nets a LevelledMob and then places it back down, its stats increase until theyre capped then they kill them for a large max of XP.

My current kinda-solution in mind: set mobs stats to the default values when they spawn in.

maxHealth should not be addition per level, rather multiplier

reported by Eyrian#2010, who has helped me a lot to fix this issue, especially during my studies.


mobs dont seem to be stronger for a specific reason, being, your settings.yml stating the values as multipiers while you treat them as additions per level in code and comment

//Set the max health.
final double newMaxHealth = baseMaxHealth + (instance.settings.get("fine-tuning.multipliers.max-health", 1.0F) * level);
Objects.requireNonNull(ent.getAttribute(Attribute.GENERIC_MAX_HEALTH)).setBaseValue(newMaxHealth);
ent.setHealth(newMaxHealth);

versus

//Set the max health.
final double newMaxHealth = baseMaxHealth + (baseMaxHealth * (instance.settings.get("fine-tuning.multipliers.max-health", 1.0F) - 1) * level);
Objects.requireNonNull(ent.getAttribute(Attribute.GENERIC_MAX_HEALTH)).setBaseValue(newMaxHealth);
ent.setHealth(newMaxHealth);

notice the change at the first instruction, this would be as stated in the settings.yml

zombie villager conversion nametag update

白貓#3345 reported
note: not a bug, but this an enhancement to nametag updater class

Is this a bug which the villager get bite by zombie then use gold apple turn him back to normal villager but the zombie villager tag still on him

add killall

/levelledmobs killall [world]

written sort of skript-style:

if args.length == 1:
 int killed = 0;
 loop all enties in command sender's world
  if loop-entity is levellable
   kill loop-entity
   killed++
 message: 'Killed 25 levelled entities in world world_nether.'
if args.length == 2:
 int killed = 0;
 World w = Bukkit.getWorld(args[2]);
 if(w == null) {
  message: Invalid world Survival.
  return;
 }
 loop all entities in specified world
  if loop-entity is levellable
   kill loop-entity
   killed++
 message: 'Killed 25 levelled entities in world dungeons.'

remove console colours

they only work well on papermc
just fired up a spigot server and found out how messy the logs are

All mobs are Level 0 in latest snapshot

I had to revert to the 1.8 snapshot to get mobs to spawn at random levels. I do not see any config file or command in-game to change how often higher level mobs spawn, either.

Custom item drops based on mob level

suggested by spigotmc user blaukat

Customize item drops based on mob level, i:e allow level 5 endermen to have a 5% chance to drop end crystals, and then level 10 have a 10% chance, etc.

Custom summon command for specific levels

/levelledmobs summon <EntityType> <level>

  • Summons at your location
  • Players only

/levelledmobs summon <EntityType> <level> <x> <y> <z>

  • Summons to the location
  • Can be ran by console

/levelledmobs summon <EntityType> <level> <player>

  • Summons to a player
  • Can be ran by console

an 'in-between' custom-name-visible setting.

custom name visible is a vanilla thing which I can't control.
custom name visible is a boolean which sets how users can see entity name tags.
when the boolean is:

  • true: the player can only see the mob nametag when in render distance
  • false: the player can only see the mob nametag when looking at the entity within hitting distance

a few users so far have requested that there is a setting where you can see mobs from afar but not when they're out of sight (underground, etc).

I have no idea how to efficiently integrate this into the plugin, so I've created this issue in case anybody knows how.

not working

[14:39:02] [Server thread/ERROR]: Could not pass event CreatureSpawnEvent to LevelledMobs v1.26
java.lang.NullPointerException: null
at io.github.lokka30.levelledmobs.listeners.LCreatureSpawn.onMobSpawn(LCreatureSpawn.java:47) ~[?:?]

separate ranged damage multiplier

Spigotmc user Velerium suggested that ranged mobs like skeletons are too OP right now so they should have a separate ranged damage multiplier

Chance to have specific equipment

Feature request by SpigotMC user soloman981

The user says:
'Feature idea > Chance percentage to have specific equipment. The higher the level the higher the chance for a mob to have a set item.'

Since I still don't know how to scan for sections with LightningStorage, I will have to make an 'enabled-chances' section where each chance used would have to be specified there.
OR, i could loop through 1-100 each time.

It will also be annoying to cache this, it will need a custom EquipmentChance object.

This is my interpretation of the idea, posed in settings.yml:

equipment-chances:
 30:
  main_hand: WOODEN_SWORD
  off_hand: AIR
  helmet: AIR
  chestplate: LEATHER_TUNIC
  leggings: IRON_LEGGINGS
  boots: IRON_BOOTS
 10:
  main_hand: STONE_SWORD
  off_hand: APPLE
  helmet: LEATHER_CAP
  chestplate: GOLDEN_CHESTPLATE
  leggings: CHAINMAIL_LEGGINGS
  boots: CHAINMAIL_BOOTS

so, it's formatted this way:

 chance:
  inventory-location: material

offhand isn't used by mobs so it doesn't have to be added, but more features don't hurt

Mobs not spawning with max hp

So i started to use the plugin and everything seems to be working fine but the only problem is that mobs spawn always with default minecraft hp
for example a level 8 zombie will spawn with 20/28 hp
there are no errors in log files and im using 1.15.2 spigot

ranged mobs increased damage

probably done by listening to projectilehitevent or something and checking the shooter if it is levellable get its level

Allow users to customise mob names

SpigotMC user Niemiluch said on my profile:

hi, you have created a really extra plugin - LevelledMobs , but I have a question, do you ever plan to add the option of e.g. changing the name of the mobs? this could be useful for servers that are not in English :)

Unfortunately it is currently out of my skill level as I am still getting used to the LightningStorage methods.

I would imagine it like this:

settings.yml:
 mob-name-translate:
  ZOMBIE: 'Brain Eater'
 CREEPER: 'Corrupted Pig'

per-entity level cap

Add the possibility to lock a mob to an specific level.
Ex :
mob-level:

  • Enderman: 5
  • Zombie: 10

In this exemple, the enderman can't be level 10 but the zombie can

Mobs spawn with regular health

Having an issue with the mobs spawning with regular health instead of the plugins max health. They have the max health assigned as I can use potions to heal them to the max, but for some reason it doesn't set the max health when they spawn.
Tested with various level ranges, and health values.
Tested it with and without any other plugins

UPDATE: Just tested new snapshot and its fixed.

per-world mob level cap

suggested by spigotmc user blaukat

I REALLY need to figure out how to store hashmaps with LightningStorage. would close many of the issues here. hence the 'author can't add' as I need to figure out this library more.

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.