The Meaning of Life, the Universe, and Everything.
Location:
SP
Join Date:
4/30/2013
Posts:
50
Location:
SP
Minecraft:
TBlazeWarriorT
Member Details
I want, for example, to make it so all nether endermen cause blindness to nearby players, but I'm struggling to find a way out to run that command throughout the whole nether, since the nether has no worldspawn chunk.
Hopper chunk loaders would teorically work, but I don't want to load all chunks nor adding hoppers to them all.
My other desperate option would be to somehow move the commands around with the player, since the nether even has some empty space above the bedrock, but it could be tricky or not work.
I want, for example, to make it so all nether endermen cause blindness to nearby players, but I'm struggling to find a way out to run that command throughout the whole nether, since the nether has no worldspawn chunk.
Hopper chunk loaders would teorically work, but I don't want to load all chunks nor adding hoppers to them all.
My other desperate option would be to somehow move the commands around with the player, since the nether even has some empty space above the bedrock, but it could be tricky or not work.
Does someone know how to go around that?
Well, you do know that the world spawn chunk never unloads.
Why not put the command block in the overworld instead?
Dimension:-1 means that the entity is in the nether. (It's a data tag btw)
Commands in the spawn chunks of the Overworld should stay active while you're in the Nether.
Make sure to place the commands in the overworld spawn chunks (or inside functions), and you should be good.
Use this command in a fuction tagged with "minecraft:tick":
execute in the_nether at @e[type=enderman] run effect give @a[distance=5] minecraft:blindness 1 1
Links that will help:
https://minecraft.gamepedia.com/Tag
https://minecraft.gamepedia.com/Data_pack
Edit:functions are always loaded so no need to use spawn chunks.
Written by AboookhTheMaster,
Feel free to ask anything.
----|Have a nice day!|----
Note that this will only work in 1.13, where that functionality has been added. For all other versions, keep a command block in the spawn chunks.
@YMbrothers
Thanks, the Dimension tag helped a lot.
And now I realized that the overworld chunks keep loaded in the nether, so that solved my problem
@Robified
Yes, placing them in the overworld worked, thanks.
The snapshots aren't working for me, I used the good old "/execute @e[type=enderman] ~ ~ ~ /effect @a[r=1] minecraft:blindness 3 0"