Skip to content

Add something like wholeStackDeathReason #115

@RedW0lfStoneYT

Description

@RedW0lfStoneYT

A feature for killing whole stack say to fall damage would be appreciated

Example

mobStacking:
  # Is mob stacking enabled?
  enabled: true
  # Should vanilla mobs stack?
  # If set to false, only custom mobs will stack
  stackVanillaMobs: true
  # Max distance in which mobs will stack together
  maxMobStackDistance: 32
  # Maximum number of mobs in a stack
  maxMobsPerStack: 100000
  # Should whole stack die when one is killed?
  wholeStackDeath: false


  # Reasons the whole stack should be killed when one dies
  wholeStackDeathReason: 
    - FALL


  # Stacked Mobs Blacklist
  # Add any mob type you want here to not stack
  mobBlacklist:
    - 'ENDER_DRAGON'
  # Should mobBlacklist work as whitelist?
  # If set to true, only mobs from this list will stack
  mobBlacklistAsWhitelist: false
  # Should mobs from spawners have AI?
  # If set to false, mobs from spawners will not have AI - will not walk or attack.
  spawnerMobsAI: true

Also make it that spawnerMobsAI: true doesn't just call baseEntity.setAI(false) as this makes it not even be affected by gravity and doesn't work on custom mobs (at least on Tequila 1.21.5)
alternative options for that would be Bukkit.getMobGoals().removeAllGoals(mob)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions