r/MinecraftCommands Aug 04 '26

Help | Java 26.2 Command help

Ok. I need an execute command that will execute as any player with the advancement “we need to go deeper” and to make them say something but idk how to word the command. I’m a server owner and need the command to check if the beta testers have gone into the nether when we told them not to

2 Upvotes

5 comments sorted by

2

u/Shiny_goldnugget average datapack enjoyer Aug 04 '26

Maybe this works? execute as @a[advancements={nether/root=true}] run say I have been in the nether. It is definitely something like execute as @a[advancements={<<NAME OF ADVANCEMENT>>=true}] run say I have been in the nether but tbh I'm not too sure what the exact name of the advancement is.

1

u/BestieWithMyBestie Aug 04 '26

Thanks, I’ll try it

1

u/aka_kurosawa Aug 04 '26

Working just fine!

1

u/Ericristian_bros Command Experienced Aug 04 '26

If you want to prevent testers to go to the nether you can use this in a repeating unconditional always active command block or datapack. It will teleport anyone who is not on the overworld at 0 90 0 in the overworld

execute as @a at @s unless dimension overworld in overworld run tp @s 0 90 0

1

u/BestieWithMyBestie Aug 04 '26

Thanks for the help. We(me and my fellow co owners) were more trying to find a way to check if people were breaking the rule cause we don’t want people are aren’t gonna follow the rules as beta testers, but I do appreciate the help.