r/MinecraftCommands

Reproducing commands only ONCE per player

Ok so i know the title sounds kinda basic but hear me out. I actually asked this a long time ago and the replies i got were not useful.

Im making a server in bedrock, and theres a platform in which players will need to stand on in order to teleport somewhere else. The problem is that, if 2 players stand on the platform at the same time, the dialog commands that ive set prior to the teleportation play more than once. They play out as much times as the amount of players on top of the platform.

Ive tried tag systems, a kind of "timer" system that works via scoreboards and executing the commands only for players with a certain amount of points (points which are added every 0.5 seconds) and nothing seems to work. I mean, the timer system is the closest ive gotten, but it only works as intended if the players enter the platform with at least 0.5 seconds of separation between them, which they almost never do because of course, they all wanna teleport together. I also tried tweaking the timer method to make the separation between players the smallest i could, but the scoreboard add command wont work if i try to reduce the tick delay. I guess that its because reducing it further makes it too fast for the command block to react and execute properly.

So ive come to ask you for help. How can i make this? The project is full of command cutscenes, camera commands, dialogues, blah blah blah, but i still cant find a way to execute them for every person SEPARATELY without the command repeating unnecessarily. I was thinking about a sort of "tag randomizer", so when they get on top of the platform, they get assigned a random tag which cannot be obtained by any other player, and make the command chains run separately via those tags, but i dont know if that would work or if randomizing would be too much of a hassle as well

reddit.com
u/Mr_Negii — 11 days ago