Skip to content

Stabilise damage source experiment#8414

Merged
sovdeeth merged 5 commits intoSkriptLang:dev/featurefrom
tibisabau:feature/stabilise-damage-source-experiment
Mar 6, 2026
Merged

Stabilise damage source experiment#8414
sovdeeth merged 5 commits intoSkriptLang:dev/featurefrom
tibisabau:feature/stabilise-damage-source-experiment

Conversation

@tibisabau
Copy link
Copy Markdown

Problem

Damage sources were marked as experimental because they relied on unstable Bukkit APIs. The relevant Bukkit APIs have been stable since Minecraft 1.21.7 with no reported breaking changes, making the experimental status unnecessary.

Solution

Stabilized the damage source feature by removing experimental restrictions:

  • Changed DAMAGE_SOURCE lifecycle from LifeCycle.EXPERIMENTAL to LifeCycle.STABLE in Feature.java
  • Removed implements DamageSourceExperimentSyntax from all 9 damage source syntax element classes
  • Deleted the DamageSourceExperimentSyntax.java interface file as it's no longer needed

Testing Completed

  • ./gradlew clean build - Successful with 0 errors
  • ./gradlew clean quickTest - All tests passed, including:
    • "custom damage source" test case
    • "damage source error" test case
    • "damage source outside section error" test case

Supporting Information

This is not a breaking change. Existing scripts using using damage source will continue to work. Users can now use damage source syntax without the experimental declaration.


Completes: #8333
Related: none
AI assistance: GitHub Copilot with Claude Sonnet 4.5 model

The code in this pull request was generated by GitHub Copilot with the Claude Sonnet 4.5 model.

@tibisabau tibisabau requested a review from a team as a code owner January 28, 2026 22:57
@tibisabau tibisabau requested review from APickledWalrus and Pesekjak and removed request for a team January 28, 2026 22:57
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jan 28, 2026
@sovdeeth
Copy link
Copy Markdown
Member

This shopuld be pushing it to MAINSTREAM, not STABLE
See the for loops experiment

@sovdeeth
Copy link
Copy Markdown
Member

Should remove the experiment from the damage source tests too.

@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jan 29, 2026
Copy link
Copy Markdown
Member

@Pesekjak Pesekjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the UnstableApiUsage supression if everything in the affected classes is now stabilized api

@tibisabau tibisabau requested a review from Pesekjak January 30, 2026 10:25
@skriptlang-automation skriptlang-automation bot added feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. and removed needs reviews A PR that needs additional reviews labels Jan 30, 2026
@sovdeeth sovdeeth merged commit fae5b24 into SkriptLang:dev/feature Mar 6, 2026
9 checks passed
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. labels Mar 6, 2026
sovdeeth added a commit that referenced this pull request Apr 2, 2026
* Add Origin-applying SyntaxRegistry (#8376)

* Add reduce/fold Expression (#8353)

* Location with Yaw/Pitch (#8351)

* Test framework: support directory resources (#8377)

* Test framework: support directory resources

* use walkFileTree

* oops forgot imports

* Pattern Stringification Customization (#8391)

* Implement StringificationProperties

* Package cleanup

* Fix missing call in GroupPatternElement stringification (#8449)

Fix GroupPatternElement stringification

* Stabilise damage source experiment (#8414)

* Stabilise damage source experiment

* Replace STABLE with MAINSTREAM

* Remove experiment from damage source test

* Remove unstable API usage supression

---------

Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>

* Add vector(n) (#8412)

* Init commit

* Fix not registering overloading for old namespaces

* Standardize Module usage + add child modules (#8346)

* child module support

* Create child modules and move over existing Bukkit addon modules.

* Update newer modules

* Clean up

* Requested changes and additional conversions

Just tags left!

* convert last module

* standardize package hierarchies

* remove bad imports

* fix bad examples

* Replace ChildAddonModule with HierarchicalAddonModule, move display/interaction modules into entity module, few other requested changes

* requested changes

* varargs registrar (thanks blue!)

* Use addonmodule javadocs to point to other useful tools

* Requested Changes

* Requested Changes

* Added option to compress file backups (#8396)

* Add fast path for integer strings in variable name comparator (#8483)

* Initial conversion

* Some more conversion

* fixes

* Update StructCommand.java

* no tests

---------

Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
Co-authored-by: mibers <midaswoah2@gmail.com>
Co-authored-by: _tud <98935832+UnderscoreTud@users.noreply.github.com>
Co-authored-by: devdinc <234956748+devdinc@users.noreply.github.com>
Co-authored-by: Tiberiu Sabău <96194994+tibisabau@users.noreply.github.com>
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Co-authored-by: Pesek <42549665+Pesekjak@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants