Using console to /setblock in a world other than "world"?
Is it possible to use the console to perform the command /setblock in a world other than the default "world"?
Using Minecraft Bukkit
Solution 1:
The short answer is "No." Setblock's command usage:
/setblock <x> <y> <z> <block> [dataValue|state] [oldBlockHandling] [dataTag]
does not provide a means for specifying a world. When used from the console changes will be applied to the default world (overworld). To make changes in other worlds such as The Nether or The End, the command must be executed in-game. A more detailed description of the command can be found in How to Use the SetBlock Command in Minecraft.
Solution 2:
You could try something like the following:
/execute in minecraft:the_nether run setblock <x> <y> <z> <block> replace