Weather and Time#1078
Open
JasperLorelai wants to merge 12 commits into
Open
Conversation
Chronoken
approved these changes
Jun 3, 2026
- 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.
Add "paste-structure-void" and "prevent-overwrite".
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
TimeSpellcan now target players when cast as a sub-spell.TimeSpellmessage forstr-announcefor convenience.Additions:
.instant.TimeSpell:timeas an alias totime-to-set.add-timeandset-player-timeboolean toggles. Player time can be reset withtime: 0..targeted.PasteSpell:Added
paste-structure-void(boolean, defaults tofalse) - Toggle whetherstructure_voidwithin the schematic will be placed or ignored.Added
prevent-overwrite- May be a boolean or a (Predicate of Material, but exclusively block types) - When unspecified or empty, all blocks are overwritten like usual. Whentrue, after filtering outpaste-air&paste-structure-void, this option will prevent the paste from succeeding if a schematic block overrides any block in the world. When a Predicate, it only prevents overwriting of blocks that match the predicate. For example, you can allow the replacement of blocks that have the#replaceabletag (plants, liquids, water, etc. - but alsolightblocks). But you can easily prevent extra blocks with the predicate, likelight,barrier,bedrock, etc.Added
.instant.WeatherSpell:rainandthunder- Boolean values, unset by default.duration-clear,duration-weather,duration-thunder- Integer ticks. These options override the default randomised weather clocks caused byrain&thunder.player-weather- Ignores all other options because it affects only the player weather. Can beclear,downfallorreset.Added
experiencespell effect with integer optionslevelandprogress([0, 100]interval), and aresetboolean option. The spell effect can fake the change in experience level and/or progress for the player target of the effect.Added
require-supported-itemtoEnchantSpell, a boolean option, defaulting totrue. When disabled, this allows items which are normally not supported by an enchantment to be enchanted on the item. This will always pass forbook.Added options to
ParticleCloudSpellfor configuring the appearance of thetrialparticle. Under atrialsection, you can now configurecolor(Color),duration(Integer),target-offset(Vector), andtarget-relative-offset(Vector).Added options to the
particlesspell effect and theParticleCloudSpellto configure the26.2geyser particles. Under ageysersection, you can usewater-blocks(Integer) andburst-impulse(Float).Fixes:
meta_experience_pointsnot accepting float values, but only integer values, while its acceptable value range is0.0to1.0.switchexpression function by EvalEx failing to compare numeric values properly.attributedefaultmodifier condition now properly checks against the default attributes of the target entity type, not the server's default attributes.ParticleCloudSpellfailing when thetrialandvibrationparticles were used.trialnow has new options to configure the particle appearance. The wayvibrationplays in the particle cloud makes less sense to be available in the spell, so the spell plays the default potion particles instead.