Replacing rails in Minecraft with Command with powered rails?

am
- in Worlds
7

Can you replace normal rails with powered rails in Minecraft? With a command? So that the route itself is preserved? It is clear to me that they still have to get electricity. Best with the Minecraft internal, / fill '' command, if necessary also with WorldEdit? Is there such a command and if so what is it called?

De

// replace normal rails powered rails

An

Replacenear maybe. But I'm not very familiar with worldedit.

https://minecraft-worldedit.fandom.com/wiki/Pattern here is explained with the patterns

De

Is there no longer the normal // replace?

An

I do not know that. It's been years since I was dealing with it.

En

You can set a filter block with the / fill command.

https://minecraft-de.gamepedia.com/...efehl/fill

If the specified block exists in the area, it will be replaced by the block you specified.

am

Yes, but maybe. Is it also possible without WE.

De

Yes, dismantle with rails and set again…