Skip to content
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

Open
wants to merge 25 commits into
base: dev/feature
Choose a base branch
from

Conversation

Phill310
Copy link
Contributor

@Phill310 Phill310 commented Aug 29, 2024

Description

Add worldborder syntax to Skript. Continuation of #5229
Player's worldborder is always virtual

Conditions:

  • updated IsWithin condition

Effects:

  • expand/shrink worldborder (maybe add grow/contract aliases)
    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 way

Events:

  • Worldborder bounds change
  • Worldborder bounds finish change
  • Worldborder center change

Expressions:

  • worldborder
  • worldborder center
  • worldborder damage amount
  • worldborder damage buffer
  • worldborder size
  • worldborder warning distance
  • worldborder warning time

Sections:


Target Minecraft Versions: any
Requirements: Paper for worldborder events
Related Issues: #5178, #3848

Copy link
Contributor

@Fusezion Fusezion left a comment

Choose a reason for hiding this comment

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

TEST!

@Fusezion
Copy link
Contributor

A lot of chez's stuff might of been repeated he beat me ;(

@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Aug 30, 2024
@Phill310 Phill310 marked this pull request as ready for review September 9, 2024 01:55
Copy link
Member

@sovdeeth sovdeeth left a 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!


@Override
public String toVariableNameString(WorldBorder border) {
return toString(border, 0);
Copy link
Member

Choose a reason for hiding this comment

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

might want to have a more compressed and guaranteed unique format for variables:
[virtual] worldborder of player/world for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not really sure if I can get a player's name/uuid here but I can add the virtual part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants