Skip to content

Release 2.6.0

Latest

Choose a tag to compare

@jamailun jamailun released this 17 Oct 17:01
· 5 commits to master since this release

New features

New bundled functions

  • rand_int(number, number) -> number Returns a new number between the two parameters. Same as rand_number but returns, as the name subtly implies, an integer.
  • block_below(entity) -> location find the first passable block below an entity.

New bundled animations

  • blocks.circle. Expects a duration, a radius and a types material array. Will run multiple play BLOCK at once. This is a great optimisation for large block animations.
  • blocks.square. Same arguments as the "circle" animation.

Improvements

  • The SpellCaster trait will only be active if a player is in the same world as the NPC.

Fixes

  • Fixed a risk of concurrency issue with animations.
  • Fixed a bug with the SpellCaster trait not following the spell-caster-trait tick-rate configuration. CPU consumption is as such reduced.