mojira.dev
MCPE-85967

fill replace command fail

when type in /fill <x y z> <x y z> air replace stone command, the system shows 

Syntax error: Unexpected "replace": at "10 10 air >>replace<<stone"

[media]

Attachments

Comments 4

The command requirements are /fill <from: xyz> <to: xyz> <tileName:Block> <tileData:Int> replace <replaceTileName:Block> [replaceDataValue: Int]

In commands, when something is surrounded by < >, like the xyz coordinates, that means it's required to be entered. In most fill types, the tileData:Int part is surrounded by  [ ] meaning it's optional and not required. However, when using the replace command, it is surrounded by < > meaning it is required. Your problem isn't a bug, just simply a typo. For most blocks such as the air in your command, the tile data can be 0 or 1 and your command will work. 

Try this:

/fill <x y z> <x y z> air 1 replace stone

If you were working with a block such as concrete, the tileData would affect the color of the block.

Hope this helps!

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

To make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

I'm having this issue too, everytime I use the replace command it yields an error, even if I'm just copying and pasting the same one I found online.

Peter Kan

(Unassigned)

Unconfirmed

Windows

windows 10

1.16.0

Retrieved