gnembon / fabric-carpet

Fabric Carpet
MIT License
1.65k stars 261 forks source link

Tickrate Resets on Server Restart #1794

Closed SirHodgeheg closed 9 months ago

SirHodgeheg commented 10 months ago

Hi, When setting a custom tick rate on my server using /tick rate X, the game tick rate value resets after restarting the server or stopping and starting it again. Is there a way to permanently change the tick rate?

altrisi commented 10 months ago

You could make a tiny scarpet script to run the tick rate command when the server starts, using run('tick rate 12345') (in an sc file).

SirHodgeheg commented 10 months ago

Hi, Thank you very much for the very quick response! However, I am very new to Mods and so that would be very difficult for me to figure out. Could you please explain how I could do this?

replaceitem commented 10 months ago

In the world folder of your server, create a folder called scripts, and create a new file there called tickrate.sc for example (needs to end in .sc). In that file, paste this line with the tick rate you want:

run('tick rate 10')

This should then execute when the server starts.

SirHodgeheg commented 10 months ago

Thank you very much!

SirHodgeheg commented 10 months ago

For some reason, this doesn't seem to work. Do I need to add Scarpet somewhere?

replaceitem commented 10 months ago

Scarpet is included in carpet

SirHodgeheg commented 10 months ago

Thanks! It now works!

altrisi commented 9 months ago

Going to close this then.

altrisi commented 9 months ago

Related to #1818.