-
-
Notifications
You must be signed in to change notification settings - Fork 374
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 lowest solid block #5284
Add lowest solid block #5284
Conversation
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.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.
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.
Tests can be added for this
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprLowestHighestSolidBlock.java
Outdated
Show resolved
Hide resolved
set block at location(0.5, 0.5, 0.5, "world") to air | ||
set block at location(0.5, 1.5, 0.5, "world") to air | ||
set block at location(0.5, 2.5, 0.5, "world") to dirt |
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.
This will have issues with conflicting with other tests. In the future you'll be able to use event-block
after one of my pulls, I forget which one.
Most tests revert the block back to what it was.
This one is problematic because it's near 0,0,0 either new location or I suggest making it restore
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 would imagine that a test should make no expectation regarding the state of the world - so if it is expecting a block to be something at a location, that should be explicitly set at the beginning of the test
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 think that's a good principle to abide by, but setting any blocks you set back to air seems like good defensive behavior in case a test isn't abiding by that.
Syntax isn't old one |
bd134d0
to
3f08853
Compare
Description
This PR adds the lowest solid block and improves the syntax class
Target Minecraft Versions: N/A
Requirements: N/A
Related Issues: