Skip to content

[//stack] Stack Selection #3038

Open
Open

Description

@p-98

The Problem

According to the docs, there is currently no -s flag on the //stack command to also stack the selection.

There is actually an undocumented effect of -s to //stack, though not what I would expect. Currently specifying -s leads to a selection around the last pasted instance of the stack.
What I would expect is for the selection to include the original and all pasted instances.

Use case: Currently, stacking in two directions requires two commands and adjusting the selection inbetween. This feature would make the middle step obsolete.

//stack 3 east
[Adjust selection, could be replaced by -s]
//stack 3 north

A Solution

  • If current -s behaviour is unintentional: Change the flag to the behaviour described above.
  • If current -s behaviour is intentional: Add a new flag that has the behaviour described above (e.g. -ss, if duplicate letters are no problem, although I suspect they are).

In both cases, the flags should be added to the documentation.

Alternatives

No response

Anything Else?

No response

Activity

  1. me4502 commented on Oct 17, 2026

    @me4502
    Member

    For clarification, the -s flag is documented as "Shift the selection to the last stacked copy" – its purpose is to allow easily continuing the stack from that final point (eg, to continue it along, or stack in another direction)

  2. octylFractal commented on Oct 17, 2026

    @octylFractal
    Member
  3. octylFractal commented on Oct 17, 2026

    @octylFractal
    Member

    I think we're open to this under -S, to separate it from -s.

  4. added
    status:acceptedWill be fixed / added to WorldEdit, eventually
    and removed on Oct 17, 2026
  5. p-98 commented on Oct 21, 2026

    @p-98
    Author

    4. I think we're open to this under -S, to separate it from -s.

    Sounds great!

    2. For clarification, the -s flag is documented as "Shift the selection to the last stacked copy" – its purpose is to allow easily continuing the stack from that final point (eg, to continue it along, or stack in another direction)

    3. The documentation in question: https://worldedit.enginehub.org/en/latest/commands/#command-//stack

    I see, thanks for the link. Maybe those flags should also be mentioned in the usage section (https://worldedit.enginehub.org/en/latest/usage/regions/regionops/#stacking), which is where I looked.

  6. wizjany commented on Oct 24, 2026

    @wizjany
    Collaborator

    I think it's worth considering a separate "expand" flag that keeps the original selection too. Thought being that if you want to make a grid starting with one cell, you'd have to stack that cell in one direction, re-select the original cell, then stack in the perpendicular direction.
    Also worth noting that non-axis-aligned offsets or non-cuboid selections may have unexpected behaviors here - WorldEdit will happily stack a sphere multiple times and select the last one, but it can't select multiple spheres without degrading to their AABB. This, at the least, needs to be told to the user if they're stacking in one of these ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:acceptedWill be fixed / added to WorldEdit, eventuallytype:feature-requestRequest for something new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions