Skip to content

Updates for worldborders#8659

Open
AnOwlBe wants to merge 45 commits into
SkriptLang:dev/featurefrom
AnOwlBe:UpdateWorldBorder
Open

Updates for worldborders#8659
AnOwlBe wants to merge 45 commits into
SkriptLang:dev/featurefrom
AnOwlBe:UpdateWorldBorder

Conversation

@AnOwlBe

@AnOwlBe AnOwlBe commented May 25, 2026

Copy link
Copy Markdown

Problem

All worldborder elements were running on deprecated registration methods as well as worldborder events being in the god awful simpleevents while also using deprecated registration methods
additionally worldborderwarningtime was using deprecated methods to set/get duration (old method used seconds via long newer method simply uses ticks)

Solution

Deletes all worldborder elements including events
Creates a worldbordermodule
Re adds all worldborder elements including events to use new registry & event-value registry system
Makes versions >= 1.21.11 use the newer method for get/setting warningtime for worldborders older versions fallback to the older method
Changes to tests:
changed test for warningtime when using >= 1.21.11
changed all worldborder tests to use 'catch runtime errors' when getting/setting/removing NaN/infinity/-infinity

Testing Completed

Manual testing completed everything works (though additional testing should be done on lower versions as I only tested on 1.21.11)

Supporting Information

I think registering all the worldborder events & event-values should each be their old file inside elements -> events though I would like confirmation on this before doing (right now its all registered in worldbordermodule)


Completes: none
Related: replaces #8504
AI assistance: next to none

overall this is mostly an internal PR nothing for the user really changes (for the most part there are some things)

@AnOwlBe AnOwlBe requested a review from a team as a code owner May 25, 2026 08:43
@AnOwlBe AnOwlBe requested review from Burbulinis and erenkarakal and removed request for a team May 25, 2026 08:43
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels May 25, 2026
@skriptlang-automation

This comment has been minimized.

@skriptlang-automation skriptlang-automation Bot moved this to In Review in 2.16 Releases May 25, 2026
@skriptlang-automation skriptlang-automation Bot added enhancement Feature request, an issue about something that could be improved, or a PR improving something. and removed needs triage An issue that hasn't been classified or verified yet labels May 25, 2026
AnOwlBe and others added 7 commits May 25, 2026 13:16
…s/expressions/ExprWorldBorderWarningTime.java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
…s/expressions/ExprWorldBorder.java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
…s/WorldBorderModule.java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
…s/WorldBorderModule.java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
…s/WorldBorderModule.java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
@AnOwlBe AnOwlBe requested a review from Efnilite May 25, 2026 17:38

@APickledWalrus APickledWalrus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good so far. Indentation is cooked for a lot of the register methods - I covered some but there are more, so I recommend going back through those files.

@skriptlang-automation skriptlang-automation Bot removed the needs reviews A PR that needs additional reviews label May 27, 2026
AnOwlBe and others added 2 commits May 27, 2026 17:29
…s/expressions/ExprSecCreateWorldBorder.java

Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
…s/WorldBorderModule.java

Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
@AnOwlBe

AnOwlBe commented May 28, 2026

Copy link
Copy Markdown
Author

Okay I think I fixed everything @APickledWalrus ^

@AnOwlBe AnOwlBe requested a review from APickledWalrus May 28, 2026 02:41

@sovdeeth sovdeeth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good, just some weird formatting issues

AnOwlBe and others added 5 commits May 28, 2026 01:45
…s/expressions/ExprWorldBorderDamageBuffer.java

Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
…s/expressions/ExprWorldBorderDamageAmount.java

Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
…s/expressions/ExprWorldBorderWarningTime.java

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

AnOwlBe commented May 28, 2026

Copy link
Copy Markdown
Author
image okay I just ran it through a spaces to tabs converter n pasted it so it should be completely tabs

@sovdeeth

Copy link
Copy Markdown
Member

okay I just ran it through a spaces to tabs converter n pasted it so it should be completely tabs

It didn't fix the ones pickle commented on (ExprWorldBorderDamageAmount for example) and there's still a few with the closing } for the register method too far indented.

@AnOwlBe

AnOwlBe commented May 28, 2026

Copy link
Copy Markdown
Author

okay I fixed all extra tab for } for register methods

Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
@AnOwlBe AnOwlBe requested a review from Absolutionism June 2, 2026 08:03
@AnOwlBe AnOwlBe requested a review from Absolutionism June 10, 2026 01:50

@APickledWalrus APickledWalrus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few minor things, almost there!

@AnOwlBe AnOwlBe requested a review from APickledWalrus June 13, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

5 participants