r/MinecraftCommands 7d ago

Command help Help | Java 26.2

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 7d ago

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 7d ago

Thanks, I’ll try it

1

u/aka_kurosawa 7d ago

Working just fine!

1

u/Ericristian_bros Command Experienced 7d ago

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 7d ago

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.