Skip to content

Add section to transform effect - #8840

Open
TFSMads wants to merge 10 commits into
SkriptLang:dev/featurefrom
TFSMads:feature/transform-section
Open

Add section to transform effect#8840
TFSMads wants to merge 10 commits into
SkriptLang:dev/featurefrom
TFSMads:feature/transform-section

Conversation

@TFSMads

@TFSMads TFSMads commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Problem

This PR adds section support to transform effect.

Solution

My solutions adds section support to the transform effect and allows transformations within section using ExprInput which i have updated to accept changes if InputSource#allowChanges returns true.

Testing Completed

This PR contains a test script that tests transform section and all supported Change Modes for ExprInput.

Supporting Information

No breaking changes


Completes: #8771
Related: none
AI assistance: none

@TFSMads
TFSMads requested review from a team as code owners August 16, 2026 19:39
@TFSMads
TFSMads requested review from UnderscoreTud and erenkarakal and removed request for a team August 16, 2026 19:39

@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.

looking good

Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
}

return true;
return trigger != null || mappingExpr != null;

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.

currently both a mapping expr and trigger are allowed together, I think it should only allow one or the other.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think allowing both can be useful. The mapping expression can provide the initial transformation, while the trigger can apply additional logic to the result. I don't see a strong reason to restrict users to one or the other.

@AnOwlBe AnOwlBe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From a quick glance

Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/sections/EffSecTransform.java Outdated
@skriptlang-automation skriptlang-automation Bot added the needs reviews A PR that needs additional reviews label Aug 16, 2026
@bluelhf

bluelhf commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

great work so far! exciting stuff :)

Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/org/skriptlang/skript/common/elements/sections/EffSecTransform.java Outdated
Comment thread src/main/java/org/skriptlang/skript/common/elements/sections/EffSecTransform.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/lang/InputSource.java Outdated
TFSMads and others added 2 commits August 17, 2026 21:20
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
@skriptlang-automation skriptlang-automation Bot removed the needs reviews A PR that needs additional reviews label Aug 22, 2026
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/ch/njol/skript/expressions/ExprInput.java Outdated
Comment thread src/main/java/org/skriptlang/skript/common/elements/sections/EffSecTransform.java Outdated
TFSMads and others added 3 commits August 24, 2026 10:49
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants