-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add worldborders #7006
base: dev/feature
Are you sure you want to change the base?
Add worldborders #7006
Conversation
src/main/java/ch/njol/skript/expressions/ExprWorldBorderSize.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEST!
src/main/java/ch/njol/skript/conditions/CondIsInsideWorldBorder.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondIsInsideWorldBorder.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondIsInsideWorldBorder.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderSize.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderSize.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderWarningDistance.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderWarningTime.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderWarningTime.java
Outdated
Show resolved
Hide resolved
A lot of chez's stuff might of been repeated he beat me ;( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just needs some formatting updates, mainly around annotations!
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderSize.java
Outdated
Show resolved
Hide resolved
2cdbc4e
to
d7dbc0c
Compare
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderWarningTime.java
Outdated
Show resolved
Hide resolved
import org.jetbrains.annotations.Nullable; | ||
|
||
@Name("Warning Time of World Border") | ||
@Description("The warning time of a world border. If the border is shrinking, the player's screen will be tinted red once the border will catch the player within this time period.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so if the player is outside the border it will be tinted red after one second? im not sure what this expression does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its specifically when the worldborder is shrinking. If the player is outside the final worldborder (after the shrink), their screen will turn red x seconds before it reaches their current location
src/main/java/ch/njol/skript/expressions/ExprWorldBorderWarningTime.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things
src/main/java/ch/njol/skript/expressions/ExprWorldBorderCenter.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderDamageAmount.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderDamageBuffer.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderSize.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderDamageAmount.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprWorldBorderCenter.java
Outdated
Show resolved
Hide resolved
Location location = mode == ChangeMode.SET ? (Location) delta[0] : null; | ||
for (WorldBorder worldBorder : getExpr().getArray(event)) { | ||
switch (mode) { | ||
case SET: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal, but maybe an enhanced switch?
499ff66
to
e6eef8b
Compare
…order#getMaxCenterCoordinate
Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com>
e6eef8b
to
e708061
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that's about it, unless you add more classes
src/main/java/ch/njol/skript/expressions/ExprSecCreateWorldBorder.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprSecCreateWorldBorder.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprSecCreateWorldBorder.java
Outdated
Show resolved
Hide resolved
Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com>
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprSecCreateWorldBorder.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprSecCreateWorldBorder.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
src/main/java/ch/njol/skript/expressions/ExprSecCreateWorldBorder.java
Outdated
Show resolved
Hide resolved
…der.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lots of failing tests + conflicts
Description
Add worldborder syntax to Skript. Continuation of #5229
Player's worldborder is always virtual
Conditions:
Effects:
I don't like the way I am registering the syntax right now with the
of
and's
but I can't think of a different wayEvents:
Expressions:
Sections:
Target Minecraft Versions: any
Requirements: Paper for worldborder events
Related Issues: #5178, #3848