Skip to content

v2.13.0 - new features to support NerdNu/DragonFight

Compare
Choose a tag to compare
@totemo totemo released this 17 Apr 15:17
· 43 commits to master since this release

Updated dependencies:

  • Bukkit API version 1.15
  • LibsDisguises 10.0.0

Bug fixes:

  • Fix some NPEs when applying Attributes that correspond to mob properties, e.g. speed, flying-speed.
  • When spawning mobs, locations are now checked to see whether they are "passable", rather than just AIR (which leaves out CAVE_AIR).

General technical changes:

  • BeastMaster can now manage disguises for entities other than mobs (currently projectiles).
  • The internal API for spawning mobs from a loot table is now more amenable to use by other plugins.

New mob property types:

  • Tag Sets: Comma- or space-separated lists of strings are now stored as sorted sets with case-insensitive string comparison. See mob properties tags, groups and friend-groups.
  • Sounds are input as <type> [<range>] [<pitch>|random], e.g. BLOCK_ANVIL_FALL, ENTITY_WITHER_DEATH 50.00 0.50, ENTITY_BEE_HURT 20 random. When omitted, the default range is 15 metres, and the default pitch (playback speed) is random, meaning it is selected randomly in the range 0.5 to 2.0.

Mob property user interface:

  • Mob properties are now listed alphabetically by name in help messages for /beast-mob set.
  • Mob properties are now ordered differently in /beast-mob info with properties that define the appearance and sound of the mob early in the command output, and properties that define the mob's behaviour put towards the end of the output.

New mob properties:

  • There are new properties that affect mob behaviour:

    • anger-ticks sets the duration of anger for bees and pigzombies, and makes wolves angry for an indeterminate period if the ticks are greater than zero. Enderman anger apparently can't be set through the Bukkit API, although I haven't experimented with setting the enderman's target yet.
    • hurt-teleport-percent is the percentage chance the mob will teleport away when hurt (playing the teleport-sound). This prevents mobs from standing still when the player has the upper hand. Damage below three health points is ignored to allow the mobs to take small falls without teleporting.
  • New mob properties for sounds:

    • silent prevents the mob from playing its default vanilla sounds - useful for disguised mobs that don't sound like their disguise.
    • spawn-sound is played when the mob spawns.
    • death-sound is played on mob death.
    • projectile-launch-sound is played when the mob launches a projectile.
    • projectile-hurt-sound is played when the mob is hurt by a projectile.
    • melee-hurt-sound is played for all non-projectile damage to the mob.
    • teleport-sound is played when the mob teleports.
  • There are new properties for projectiles launched by mobs:

    • projectile-mobs replaces launched projectiles per a loot table ID or mob type ID. The DEFAULT drop causes the projectile to be not replaced.
    • projectile-disguise disguises a projectile.
    • projectile-removed, if true, removes projectiles launched by the mob on impact, rather than sticking around until despawned. This is useful for removing awkward-looking disguised projectiles.
  • There are new properties to configure mobs as immune to projectiles:

    • projectile-immunity-percent is the percentage chance that a given projectile will bounce off the mob.
    • projectile-immunity-sound is the sound played when a projectile bounces off.
  • There are new properties to spawn support mobs when a mob has "low" health.

    • support-mobs is the loot table or mob type ID of mobs to spawn.
    • support-percent is the percentage chance of spawning mobs each time health level conditions are satisfied. If unset, it is effectively a 100% chance.
    • support-health is how low the mob's health must be for it to start summoning mobs. If unset, it is taken to be the mob's maximum health.
    • support-health-step is how much the mob's health must decrease for new mobs to have a chance of spawning. If unset, any health decrease is an opportunity to spawn support mobs when the health is below the threshold.
  • Properties that are Tag Sets:

    • tags is the set of scoreboard tags to be added to the mob when it spawns.
    • groups is the set of groups a mob type belongs to.
    • friend-groups is the set of groups that the mob type refuses to target.