@@ -741,7 +741,15 @@ static string Hex(CustomColor c) {
741741 "&NUse \" normal\" instead of a number to reset to default (0)." } ,
742742 { "weatherfade" , "&H/Env <WorldName> weatherfade <#>&N&S" +
743743 "Sets how quickly rain/snow fades, relative to normal rate." +
744- "&NUse \" normal\" instead of a number to reset to default (0)." }
744+ "&NUse \" normal\" instead of a number to reset to default (0)." } ,
745+ { "skyboxhorspeed" , "&H/Env <WorldName> skyoxhorspeed <#>&N&S" +
746+ "Sets how quickly skybox rotates horizontally around." +
747+ "&Ne.g. a value of 0.5 means it rotates 360 degrees every two seconds." +
748+ "&NUse \" normal\" instead of a number to reset to default (0)." } ,
749+ { "skyboxverrspeed" , "&H/Env <WorldName> skyoxverspeed <#>&N&S" +
750+ "Sets how quickly skybox rotates vertically around." +
751+ "&Ne.g. a value of 0.5 means it rotates 360 degrees every two seconds." +
752+ "&NUse \" normal\" instead of a number to reset to default (0)." } ,
745753 } ,
746754 Usage = "/Env <WorldName> <Variable>" ,
747755 IsConsoleSafe = true ,
@@ -844,10 +852,15 @@ static void EnvHandler(Player player, CommandReader cmd) {
844852 SetEnvAppearanceFloat ( player , world , value , EnvProp . WeatherSpeed , "weather speed" ,
845853 - 32767 , 32767 , 256 , 256 , ref world . WeatherSpeed ) ;
846854 break ;
847- case "cloudspeed" :
848- case "cloudsspeed" :
849- SetEnvAppearanceFloat ( player , world , value , EnvProp . CloudsSpeed , "clouds speed" ,
850- - 32767 , 32767 , 256 , 256 , ref world . CloudsSpeed ) ;
855+ case "skyboxhorspeed" :
856+ case "skyboxhor" :
857+ SetEnvAppearanceFloat ( player , world , value , EnvProp . SkyboxHorSpeed , "skybox horizontal speed" ,
858+ - 32767 , 32767 , 1024 , 0 , ref world . SkyboxHorSpeed ) ;
859+ break ;
860+ case "skyboxverspeed" :
861+ case "skyboxver" :
862+ SetEnvAppearanceFloat ( player , world , value , EnvProp . SkyboxVerSpeed , "skybox vertical speed" ,
863+ - 32767 , 32767 , 1024 , 0 , ref world . SkyboxVerSpeed ) ;
851864 break ;
852865 case "horizon" :
853866 case "edge" :
@@ -976,6 +989,8 @@ static void ResetEnv(Player player, World world) {
976989 world . WeatherSpeed = 256 ;
977990 world . CloudsSpeed = 256 ;
978991 world . WeatherFade = 128 ;
992+ world . SkyboxHorSpeed = 0 ;
993+ world . SkyboxVerSpeed = 0 ;
979994
980995 Logger . Log ( LogType . UserActivity ,
981996 "Env: {0} {1} reset environment settings for world {2}" ,
0 commit comments