[REJECTED] Using '-' with /replace

Post all ideas and suggestions for fCraft here
Post Reply
Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

[REJECTED] Using '-' with /replace

Post by Jonty800 »

Scenario:

Let's say I just made a giant Torus of red and yellow. I then decide that I don't like the red and the yellow. Instead of using /undo and then trying to make the exact same size torus again (click, /mark) I could instead use /replace - black... and the drawing I just did would be replaced with black. I could continue and use /replace - red, /replace - purple.
You cannot use certain BBCodes: [img].

User avatar
Intertoothh
Trustee
Offline
Posts: 1149
Joined: May 24th, 2011, 5:51 am

Re: Using '-' with /replace

Post by Intertoothh »

/replace red yellow black ?
McLaughlinKid wrote:You put roar on everything don't you?

Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

Re: Using '-' with /replace

Post by Jonty800 »

Yeah, but lets say you placed a /triangle where the volume of the /replace cuboid also contains part of another build. If you replaced colors, you may also replace the blocks of the other build.
You cannot use certain BBCodes: [img].

User avatar
ruggedbear
Trustee
Offline
Posts: 215
Joined: November 7th, 2011, 9:27 am

Re: Using '-' with /replace

Post by ruggedbear »

I believe that due to limitations with /r, this is not possible. At least, not if the original draw command was brushed.
<legopineapple> I have a zombie miner for me! :D
legopineapple was slain by Zombie
<ruggedbear> Lol!
<surferdudeX> LOL
<legopineapple> Nuuu!

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Using '-' with /replace

Post by fragmer »

I dont plan on adding this to the official builds, but it's doable. You can use the data from UndoState to get coordinates of blocks modified by the previous draw command. I'd add it as an entirely separate command though, instead of complicating /replace any further.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Using '-' with /replace

Post by fragmer »

/Fill3D will do the job of replacing complex shapes now. I won't add the specific functionality you're describing though.

Post Reply