pxt
pxt copied to clipboard
Minecraft function works only in singleplayer (player.onTellCommand)
trafficstars
Describe the bug
The Minecraft function player.onTellCommand does not work in multiplayer. The event will only trigger for the hosting player.
To Reproduce Steps to reproduce the behavior:
- Run this program in Minecraft:
player.onTellCommand("ping", function () {
player.say("pong")
})
- Whisper "ping" to yourself.
/w @s ping - If you are the player hosting the game, the event will trigger and respond with "pong" in the chat.
- If you are not the hosting player, the event will not trigger and nothing will happen.
Expected behavior The onTellCommand event should work correctly for all players in a multiplayer game.
Additional context This bug has existed for a long time. Previously reported and reproduced here. Seeing this resolved would mean a lot to me personally.