Skip to content

Instantly share code, notes, and snippets.

@JasperLorelai
Last active January 11, 2024 20:28
Show Gist options
  • Save JasperLorelai/ee228dbb76c452a0a042085272d4fbbf to your computer and use it in GitHub Desktop.
Save JasperLorelai/ee228dbb76c452a0a042085272d4fbbf to your computer and use it in GitHub Desktop.

Changes:

  • Added 1.20.2-1.20.4 support.

  • Added min-horizontal-radius and min-vertical-radius to the AreaEffect spell.

  • Placeholders %a and %t now prioritise returning the non-player entity's display name before its configured name from entity-names in general.yml.

  • Added lastdamagecause.attacker data element returning its display name.

  • moonphase condition now accepts PaperMC's moon phases. Legacy grouped phases are still supported: fullwaningnewwaxing.

  • string modifier action now supports string expressions.

  • Added meta_forwards_movement and meta_sideways_movement meta variables.

  • PlayerMenu spell no longer has spell-middle because it can no longer be detected and added spell-drop and spell-swap.

  • Added custom recipe category option:

  • signtext modifier condition format has changed (backwards compatible) to side;world,x,y,z,line__1\nline__2:

    • side; is optional and can be front; (default) or back;
    • world,x,y,z is also optional. If omitted, it'll use the caster's or target's location.
    • Text lines can be split by \\n or \n, spaces can be represented with __.
  • Entity and block/location target checks now take into account accurate hitboxes and shapes of entities/blocks.

    • Added the los-ray-size option to general.yml and spell options. Defaults to 0.2. Determines the size of the ray used for checking line of sight to entities when retrieving an entity target.
    • Added the los-ignore-passable-blocks option to general.yml and spell options. Defaults to true. When true, passable blocks (blocks that do not have any colliding parts that stop movement) are ignored for entity/location targeting. For example, air and tall grass are passable.
    • Added the los-fluid-collision-mode option to general.yml and spell options. Defaults to never, and has the values alwaysnever and source_only as according to here. Determines whether or not fluids are collided with when retrieving entity/location targets.
    • los-transparent-blocks now defaults to an empty list. The AIRCAVE_AIR and VOID_AIR are still automatically added to an empty list for los-transparent-blocks, however.
    • Note: some spells still do not take into account accurate collision shapes. These spells include, but are not limited to, BeamSpellBlockBeamSpellOrbitSpellParticleProjectileSpell and HomingMissileSpell.
  • The title and author options of magic items now support MiniMessage.

  • Magic items now support the external::vanilla serialization type. This format for items is the same as the vanilla /give command.

  • The potion-color option of magic items has been replaced by the color option, for consistency.

  • The potion-data option of magic items has been replaced by the potion-type option. The previous format, <potion type> [extended/upgraded], is now just <potion type>, as extended/upgraded potion types are now their own, separate values.

  • ReachSpell now supports placing blocks in blocks tagged as replaceable, instead of just air blocks.

  • BuildSpell and PulserSpell now check if the block they attempt to set is placeable in the target location.

  • Added block location modifiers: buildable, burnable, collidable, passable, replaceable, and solid.

Fixes:

  • Fixed onteam and onsameteam conditions requiring player targets.
  • Fixed SpawnEntity spell throwing spawn chance errors when using non-Mob entities.
  • Fixed PlayerMenu spell throwing errors when the opener clicked outside the inventory.
  • Fixed signtext modifier condition not comparing text properly.
  • Fixed an issue where location-modifiers for LoopSpell were checked after applying y-offset to the targeted location, instead of before.
  • Fixed an issue that allowed dragging items into menus created from MenuSpell and PlayerMenuSpell.
  • Fixed ConjureSpell offhand: true giving duplicate items.
  • Fixed MultiSpell enable-custom-spell-chance not calculating random spells correctly.
  • Fixed an issue where the /ms magicitem command modified the stored item stack version of a magic item.
  • Fixed an issue with the uuid option of magic items that could cause an error.
  • Fixed an issue that caused magic items using the name or lore options to match improperly.

Breaking Changes:

From above:

  • PlayerMenu spell no longer has spell-middle.
  • The potion-color option of magic items has been replaced by the color option, for consistency.
  • The potion-data option of magic items has been replaced by the potion-type option. The previous format, <potion type> [extended/upgraded], is now just <potion type>, as extended/upgraded potion types are now their own, separate values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment