Minecraft – Executing the particle command in a specific dimension

minecraft-commandsminecraft-java-edition

I'm trying to execute the command:

/particle largesmoke 200 200 200 0 0 0 0.05 30

It works perfectly fine in the main world, but nothing happens in the nether. Is there a way I can specify which dimension the particle effect should be appearing in?

The executor of the command is the Console (using Skript's Execute Console Command ability)

Best Answer

a possible workaround might be to execute off of an entity in the nether.

something like this could work, granted there is a zombie pigman somewhere in the loaded nether (and not in the overworld...)

/execute @e[type=zombie_pigman,c=1] ~ ~ ~ /particle largesmoke 200 200 200 0 0 0 0.05 30

a more reliable way would be, to use multiple commands in quick succession to test whether or not there is a player in the nether and then execute off of them:

/scoreboard players tag @a add inNether {Dimension:-1}
/execute @a[tag=inNether,c=1] ~ ~ ~ /particle largesmoke 200 200 200 0 0 0 0.05 30
/scoreboard players tag @a[tag=inNether] remove inNether

all of those commands can be run in this order from the console and they should work just fine.