Skip to content

Instantly share code, notes, and snippets.

@JasperLorelai
Last active September 13, 2023 16:45
Show Gist options
  • Save JasperLorelai/8bd735394379149580ec4959f3d14ab7 to your computer and use it in GitHub Desktop.
Save JasperLorelai/8bd735394379149580ec4959f3d14ab7 to your computer and use it in GitHub Desktop.

Changes:

  • This version supports PaperMC 1.19 through 1.20.1.
  • Changed the default value of pass-targeting on TargetedMultiSpell, AreaEffectSpell, and LoopSpell to false, matching old behaviour.
  • Fixed an issue where the hit-radius and vertical-hit-radius of ParticleProjectileSpell were halved when hitting entities. IMPORTANT: divide those values in your configurations by 2. Tony made a tool for this here.
  • Optimised Nova spell/effect.
  • WindwalkSpell now restores flight states after ending.
  • Revert variable replacement support for the types list for NovaEffect till it's fixed.
  • Buff passive trigger is now consistent with its description. spells no longer only casts buff spells.
  • entity effect can now play at spell locations.
  • The subspell options delay, chance, power and args now support GVR. Additionally, arguments are now passed to subspell casts, allowing for argument replacement.

Additions:

  • Added BlockData variable replacement for NovaSpell and NovaEffect.
  • Added height and width to Data spell elements.
  • Added block-data (string) and strict-block-data (bool) options to magic items.
    • block-data specifies the block data for an item with BlockDataMeta.
    • With strict-block-data: false, magic item comparison uses BlockData#matches instead of strict equality. Defaults to true.
  • All of the options of EntityData now support replacement.
  • Added spell-on-spawn to SpawnEntitySpell, SteedSpell and TotemSpell. Casts a spell when the entity spawns. Will cast with the entity or its location as a target if applicable.
  • Added start-cooldown-teleport for PortalSpell.
  • Added intermediate-hitboxes and intermediate-effects for ProjectileSpell.
  • Added los (line of sight) modifier condition.
  • Added velocityactive (velocitySpell) modifier condition.
  • Added visible (bool), effect-offset (string in the format: "x,y,z"), and support for entity effects to ProjectileSpell.
  • Added radius (default: 50 blocks) to particles effect so that particles are only shown to players in that radius.
  • Added set-flying (bool) to Fly spell - sets the target in flight state. When false, it will just allow the target to fly on demand
  • Added enable-max-y (bool) to WindwalkSpell. This fixes a bug where you could not set max-y to be below Y level 0.
  • Added always-fly (bool) to WindwalkSpell. When true, the target of the spell cannot land.
  • Added center-location (bool) for SpawnEntitySpell, which centers the spawn location for the entity.
  • Added duration for entity effect.
  • Added targeting subspell cast mode. Valid values are: normal, entity_from_location, entity, location, none.
  • Added invert, pass-power, and pass-targeting bool options to Subspell cast modes. When invert is true, the following takes place:
    • If a caster is present, it becomes an entity target.
    • If an entity target is present, it becomes the caster.
    • If both a caster and an entity target exist, invert: true swaps them.
  • Added glowing (bool) to Entity Data.
  • Added support for block_display, item_display & text_display entity types in EntityData:
    • MC wiki explains these well.
    • Mutual Display data:
      • transformation - config section:
        • left-rotation - rotation matrix, either:
          • Angle-axis form:
            • angle (float)
            • axis: either string "x,y,z", or a config section with those keys
          • Quaternion form: either string "x,y,z,w", or a config section with those keys
        • right-rotation (rotation matrix like above)
        • translation: either string "x,y,z", or a config section with those keys
        • scale: either string "x,y,z", or a config section with those keys
      • interpolation-duration (int)
      • interpolation-delay (int) (refers to start_interpolation on the MC wiki)
      • view-range (float)
      • shadow-radius & shadow-strength (float)
      • height & width (float)
      • billboard can be one of these.
      • glow-color-override (color)
      • brightness - configuration section:
        • block (int)
        • sky (int)
    • Block displays:
      • block (block data string)
    • Item displays:
      • item (magicitem)
      • item-display-transform can be one of these.
    • Text displays:
      • line-width (int)
      • background (color, but with support for Alpha #AARRGGBB)
      • text-opacity (byte/int)
      • shadow (bool)
      • see-through (bool)
      • default-background (bool)
      • alignment can be one of these.

Fixes:

  • Fix ticks passive double-cast.
  • Fixed an issue where PlayerMenuSpell would open its menu with an extra slot.
  • Fixed Fly spell not working.
  • Fixed launch-speed on WindwalkSpell being interrupted by teleport.
  • Fixed block-chat-output on ExternalCommandSpell.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment