Allow setting max speed by attacking signs
Attack a sign to change max speed. Preset also works. Just put a preset name or any number on the first line and attack the sign. Only the first attack counts. Holding the attack key and moving over a sign won’t trigger it.
https://github.com/user-attachments/assets/19f7e649-1b54-4395-a1e8-01153fa5cde0
Looks good in general, but I have a few concerns:
Is there no event for attacking a block? It's kinda sad to check it on a tick basis. It'd be best if we could cancel the attack and prevent the packet from being sent, so it would look as of the player looked at the sign and sent the command. Attack+command in the same tick isn't very natural.
Also, could you add a speed check to see if the command that would've been sent has the same speed as the current limit before sending it? We could cut down on unnecessary commands.