WorldEdit for Bukkit

WorldEdit for Bukkit

21M Downloads

.//repeat <number> command to repeat a chain of commands

MegaMinerDL opened this issue ยท 2 comments

commented

The Problem

Sometimes I find I have to do a set of commands on repeat on a set of selections, for example I might do:

//stack 1 u -am stone
//shift 1 u
//rep stone dirt

//stack 1 u -am stone
//shift 1 u
//rep stone dirt

//stack 1 u -am stone
//shift 1 u
//rep stone dirt

(...)

A Solution

Instead, a //repeat command would repeat the last specified number of commands (ignoring non-slash messages), e.g.:

//stack 1 u -am stone
//shift 1 u
//rep stone dirt
//repeat 3

This would repeat the previous 3 commands in 1.

Alternatives

Using up and enter keys to try speedrun the repetitive process.

Anything Else?

No response

commented

this goes into the category of "belongs in a macro mod, not worldedit" imo

commented

I agree with that, I don't think we want to be tracking command history / working on a command history level for this type of thing. I could see it happening if we had more details in our operation level, so that we could easily replay an operation instead of re-parsing a command buffer (which may not even have the same effect when run like that, plus needs async handling for clipboard save/load which would be very difficult). As it stands we don't have an operation history or details in it enough to make that, so I'm going to close this.