Repository navigation
feat(command): add //paste -r for random clipboard rotation - #3665
Open
someone005 wants to merge 1 commit into
Open
someone005 wants to merge 1 commit into
someone005 wants to merge 1 commit into
Conversation
dordsor21
reviewed
Oct 2, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Rotation history advances even when no paste occurs or the paste fails.
1 open finding
What changed in this PR
Adds random quarter-turn Y-axis rotation to //paste.
Changes:
- Adds the
-rpaste option. - Temporarily composes and restores clipboard transforms.
- Tracks the previous random rotation to avoid repetition.
| File | Description |
|---|---|
LocalSession.java |
Stores the previous random paste rotation. |
ClipboardCommands.java |
Implements random rotation for //paste. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
someone005
force-pushed
the
paste-random-rotation
branch
from
October 13, 2026 07:21
1e0a458 to
7e7b401
Compare
dordsor21
reviewed
Oct 17, 2026
someone005
force-pushed
the
paste-random-rotation
branch
from
October 19, 2026 08:23
7e7b401 to
cb9cb17
Compare
PierreSchwang
left a comment
Member
There was a problem hiding this comment.
I feel like it would be sensible to use the Direction enum with the four cardinal directions instead of passing around a magic number
someone005
force-pushed
the
paste-random-rotation
branch
from
November 6, 2026 14:07
cb9cb17 to
744ee9c
Compare
someone005
force-pushed
the
paste-random-rotation
branch
from
November 6, 2026 14:09
744ee9c to
2f036a0
Compare
Author
Done 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Overview
Adds an option to randomly rotate the clipboard when using the
//pastecommand.Description
The
//pastecommand currently has no option to paste an object rotated in a random direction. For example, when pasting a tree many times, players have to use//rotatebefore every single paste. This feature would help them, because they could just walk around and use a bound//paste -rcommand. The rotation is applied around the Y axis in 90 degree increments.Submitter Checklist
@since TODO.