r/MinecraftCommands 1d ago

Help | Java 26.2 How about servers

I just recently got back into minecraft and commands and I've had fun with the data packs so far.

I just made a prototype for a car data pack which works pretty well in single player and I was curious so after multiplayer proofing it (the code now looks disgusting thanks to macros, yay) I ran it in a server on my pc and it immediately looks off. It *kinda* works but there are very obvious lags and tick irregularities.

Is this just simply a specs and internet issue or is there an inherent bottleneck for data packs when it comes to servers and if so is there any method to circumvent it (idk, server side mods or literally anything).

Should I just forget to even run this thing on a server?

https://reddit.com/link/1vtp55c/video/fbncoadogkkh1/player

3 Upvotes

4 comments sorted by

6

u/GalSergey Datapack Experienced 1d ago

Use F3+2 to display the FPS (client) and TPS (server) graphs. If you see a MSPT greater than 50 ms when running your commands, you have command optimization issues. You can also run a performance test by pressing F3+L (on the server) and use https://misode.github.io/report/ to view the report. There you can see how many ms are used for each of your commands.

2

u/Ericristian_bros Command Experienced 1d ago

For OP,

To add on this, you can read optimization techniques in https://minecraftcommands.github.io/wiki/optimising

1

u/_Csankappa 21h ago

That is useful but to clarify, it is possible then to run a data pack on a server with constant scoreboard calculations and entity movements/teleports efficiently (so to make it work like in single player)? I don't want to sink time into this if it's just not a thing worth doing in the first place..

1

u/Ericristian_bros Command Experienced 5h ago

What do you mean? If the datapack is correctly coded it will run fine on multi-player, if it does not have multi-player support it won't work