Skip to content

Weather and Time#1078

Open
JasperLorelai wants to merge 12 commits into
TheComputerGeek2:mainfrom
JasperLorelai:main
Open

Weather and Time#1078
JasperLorelai wants to merge 12 commits into
TheComputerGeek2:mainfrom
JasperLorelai:main

Conversation

@JasperLorelai

@JasperLorelai JasperLorelai commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

Added 26.2 version support.

Changes:

  • TimeSpell can now target players when cast as a sub-spell.
  • Removed the default TimeSpell message for str-announce for convenience.

Additions:

  • .instant.TimeSpell:
    • Added time as an alias to time-to-set.
    • Added add-time and set-player-time boolean toggles. Player time can be reset with time: 0.
  • .targeted.PasteSpell:
    • Added paste-structure-void (boolean, defaults to false) - Toggle whether structure_void within the schematic will be placed or ignored.
    • Added prevent-overwrite (boolean, defaults to false) - If enabled, after filtering out paste-air & paste-structure-void, this option will prevent the paste from succeeding if a schematic block will override a block in the world.
    • Added overwrite-replaceable (boolean, defaults to false) - When prevent-overwrite is enabled, this option allows overwriting blocks with the #replaceable block tag.
  • Added .instant.WeatherSpell:
    • rain and thunder - Boolean values, unset by default.
    • duration-clear, duration-weather, duration-thunder - Integer ticks. These options override the default randomised weather clocks caused by rain & thunder.
    • player-weather - Ignores all other options because it affects only the player weather. Can be clear, downfall or reset.
  • Added experience spell effect with integer options level and progress ([0, 100] interval), and a reset boolean option. The spell effect can fake the change in experience level and/or progress for the player target of the effect.
  • Added require-supported-item to EnchantSpell, a boolean option, defaulting to true. When disabled, this allows items which are normally not supported by an enchantment to be enchanted on the item.
  • Added options to ParticleCloudSpell for configuring the appearance of the trial particle. Under a trial section, you can now configure color (Color), duration (Integer), target-offset (Vector), and target-relative-offset (Vector).
  • Added options to the particles spell effect and the ParticleCloudSpell to configure the 26.2 geyser particles. Under a geyser section, you can use water-blocks (Integer) and burst-impulse (Float).

Fixes:

  • Fixed an issue with meta_experience_points not accepting float values, but only integer values, while its acceptable value range is 0.0 to 1.0.
  • Fixed an issue with the switch expression function by EvalEx failing to compare numeric values properly.
  • The attributedefault modifier condition now properly checks against the default attributes of the target entity type, not the server's default attributes.
  • Fixed an issue with ParticleCloudSpell failing when the trial and vibration particles were used. trial now has new options to configure the particle appearance. The way vibration plays in the particle cloud makes less sense to be available in the spell, so the spell plays the default potion particles instead.

- Added "time" as alias to "time-to-set".
- Added "add-time" and "set-player-time" toggles.
- Removed default "str-announce" for convenience.
- Implemented TargetedEntitySpell for player targeting.
Added "paste-structure-void", "prevent-overwrite", and "overwrite-replaceable".
This prevents a race condition where, due to our shaded jar's classifier being empty, the shaded and base jar share the same name, and sometimes the unshaded artifact overwrites the shaded one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants