-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Feature/target block update #6422
Feature/target block update #6422
Conversation
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
You target dev/feature for enhancements |
Co-authored-by: LimeGlass <16087552+TheLimeGlass@users.noreply.github.com>
I'll wait for one of the SkriptLang team members to decide which one for this. |
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
- Suggested by Pickle
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.
⚡
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Ayham Al Ali <20037329+AyhamAl-Ali@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.
Just some concerned
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprTargetedBlock.java
Outdated
Show resolved
Hide resolved
Co-authored-by: sovdee <10354869+sovdeeth@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.
just some formatting recommendations
|
||
static { | ||
Skript.registerExpression(ExprTargetedBlock.class, Block.class, ExpressionType.COMBINED, | ||
"[the] target[ed] block[s] [of %players%]", "%players%'[s] target[ed] block[s]", | ||
"[the] actual[ly] target[ed] block[s] [of %players%]", "%players%'[s] actual[ly] target[ed] block[s]"); | ||
"[the] [actual:(actual[ly]|exact)] target[ed] block[s] [of %livingentities%]", "%livingentities%'[s] [actual:(actual[ly]|exact)] target[ed] block[s]"); |
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.
"[the] [actual:(actual[ly]|exact)] target[ed] block[s] [of %livingentities%]", "%livingentities%'[s] [actual:(actual[ly]|exact)] target[ed] block[s]"); | |
"[the] [actual:(actual[ly]|exact)] target[ed] block[s] [of %livingentities%]", | |
"%livingentities%'[s] [actual:(actual[ly]|exact)] target[ed] block[s]" | |
); |
formatting
"set {_block} to actual target block of player", | ||
"break actual target block of player" | ||
}) | ||
@Since("1.0, INSERT VERSION (actual/exact)") |
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.
might be worth mentioning support for living entities rather than just players?
@Since("1.0, INSERT VERSION (actual/exact)") | |
@Since("1.0, INSERT VERSION (support for more entities, actual/exact target block)") |
Description
This PR aims to add a use for the "actual" part of the target block expression
Whilst in there, I did a little cleanup.
NOTE: I didn't know which branch to target, so I left it as master
Target Minecraft Versions: any
Requirements: none
Related Issues: #5612